|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.objectweb.jonathan.protocols.ip.lib.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 org.objectweb.jonathan.apis.kernel.JonathanException
| Method Detail |
public int available()
throws IOException
available in interface IpConnectionIOException
public void receive(Chunk chunk,
int to_read)
throws IOException
receive in interface IpConnectionIOException
public void emit(Chunk chunk)
throws IOException
emit in interface IpConnectionIOExceptionpublic 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()
public int hashCode()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||