|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IpConnection
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)
|
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 |
---|
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()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |