public interface Connection
ConnectionListener is notified of asynchronous
events on the connection.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 sendIOException - if there was a synchronous problem
sending the messagevoid close()
throws IOException
disconnected is invoked
on the listener.IOException - if there was a synchronous problem closing
the connectionCopyright © 2007-2013. All Rights Reserved.