|
||||||||||
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 IpConnection
IOException
public void receive(Chunk chunk, int to_read) throws IOException
receive
in interface IpConnection
IOException
public void emit(Chunk chunk) throws IOException
emit
in interface IpConnection
IOException
public int getPort()
getPort
in interface IpConnection
public String getHostName()
getHostName
in interface IpConnection
public IpSession getSession()
getSession
in interface IpConnection
public void setSession(IpSession session)
setSession
in interface IpConnection
session
- the session to be attached to the target connection.public void delete()
delete
in interface IpConnection
public void acquire()
public void release()
release
in interface IpConnection
public String toString()
public int hashCode()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |