|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
A IpConnection represents a communication resource. It encapsulates a socket. A connection may always be related to a given session, i.e., a communication channel.
Method Summary | |
int |
available()
|
void |
delete()
Deletes this connection, removing it from the connection manager, and closing the socket. |
void |
emit(Chunk chunk)
|
java.lang.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. |
void |
receive(Chunk chunk,
int sz)
|
void |
release()
Releases this connection. |
void |
setSession(IpSession session)
Attaches a new session to this connection. |
Method Detail |
public IpSession getSession()
public void setSession(IpSession session)
session
- the session to be attached to the target connection.public void receive(Chunk chunk, int sz) throws java.io.IOException
java.io.IOException
public int available() throws java.io.IOException
java.io.IOException
public void emit(Chunk chunk) throws java.io.IOException
java.io.IOException
public int getPort()
public java.lang.String getHostName()
public void release()
public void delete()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |