|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
M
- the type of messages that can be transmitted through the connection.public interface Connection<M extends Message>
A Message
I/O interface for a text message client or server to
communicate with its counterpart.
Method Summary | |
---|---|
void |
close()
closes this connection. |
java.lang.String |
getLocalAddressInfo()
|
java.lang.String |
getRemoteAddressInfo()
|
boolean |
isClosed()
checks whether the connection is closed or not. |
void |
open()
opens the connection before sending or receiving any message. |
void |
sendMessage(M msg)
sends a Message through this connection. |
Method Detail |
---|
void sendMessage(M msg) throws CatException
Message
through this connection.
msg
- message to be sent.
java.lang.Exception
CatException
void open() throws ConnectionException
ConnectionException
void close() throws ConnectionException
ConnectionException
boolean isClosed()
java.lang.String getRemoteAddressInfo()
java.lang.String getLocalAddressInfo()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |