|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--org.objectweb.jonathan.libs.resources.tcpip.JConnectionMgr.Connection
Implementation of TcpIpConnection.
| Constructor Summary | |
protected |
JConnectionMgr.Connection(IpConnection delegate)
Builds a new connection. |
| Method Summary | |
void |
acquire()
Returns when the socket is acquired. |
int |
available()
|
void |
delete()
Deletes this connection, removing it from the connection manager, and closing the socket. |
void |
emit(Chunk chunk)
|
String |
getHostName()
Returns the host name of the underlying socket. |
int |
getPort()
Returns the port number of the underlying socket. |
IpSession |
getSession()
Returns the session attached to this connection. |
int |
hashCode()
|
void |
receive(Chunk chunk,
int to_read)
|
void |
release()
Releases this connection. |
void |
setSession(IpSession session)
Attaches a new session to this connection. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
protected JConnectionMgr.Connection(IpConnection delegate)
throws JonathanException
| Method Detail |
public int available()
throws IOException
available in interface IpConnection
public void receive(Chunk chunk,
int to_read)
throws IOException
receive in interface IpConnection
public void emit(Chunk chunk)
throws IOException
emit in interface IpConnectionpublic int getPort()
getPort in interface IpConnectionpublic String getHostName()
getHostName in interface IpConnectionpublic IpSession getSession()
getSession in interface IpConnectionpublic void setSession(IpSession session)
setSession in interface IpConnectionsession - the session to be attached to the target connection.public void delete()
delete in interface IpConnectionpublic void acquire()
public void release()
release in interface IpConnectionpublic String toString()
toString in class Objectpublic int hashCode()
hashCode in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||