|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Connection
Represents a connection for data communication, independent of
the QoS properties of the connection's transport or protocol.
An associated ConnectionListener is notified of asynchronous
events on the connection.
| Method Summary | |
|---|---|
void |
close()
Asynchronously closes this connection, freeing any resources in use. |
void |
sendBytes(byte[] message)
Asynchronously sends data on this connection. |
| Method Detail |
|---|
void sendBytes(byte[] message)
throws IOException
The specified byte array must not be modified after invoking this method; if the byte array is modified, then this method may have unpredictable results.
message - the message data to send
IOException - if there was a synchronous problem
sending the message
void close()
throws IOException
disconnected is invoked
on the listener.
IOException - if there was a synchronous problem closing
the connection
|
Project Darkstar, Version 0.9.8-SNAPSHOT 2013-07-29 20:21:26 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||