|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ClientConnection
Represents an abstract network connection with the Project Darkstar Server.
| Method Summary | |
|---|---|
void |
disconnect()
Asynchronously closes the connection, freeing any resources in use. |
void |
sendMessage(ByteBuffer message)
Asynchronously sends data to the server. |
| Method Detail |
|---|
void sendMessage(ByteBuffer message)
throws IOException
The specified byte buffer must not be modified after invoking this method; otherwise this method may have unpredictable results.
message - the message data to send
IOException - if there was a synchronous problem sending
the message
void disconnect()
throws IOException
ClientConnectionListener.disconnected(boolean, byte[]) is invoked.
IOException - if there was a synchronous problem closing
the connection
|
Project Darkstar, Version 0.9.9.6 2013-07-29 20:55:54 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||