public interface IpConnection
Modifier and Type | Method and Description |
---|---|
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.
|
void |
receive(Chunk chunk,
int sz) |
void |
release()
Releases this connection.
|
void |
setSession(IpSession session)
Attaches a new session to this connection.
|
IpSession getSession()
void setSession(IpSession session)
session
- the session to be attached to the target connection.void receive(Chunk chunk, int sz) throws IOException
IOException
int available() throws IOException
IOException
void emit(Chunk chunk) throws IOException
IOException
int getPort()
String getHostName()
void release()
void delete()