| |
|
| java.lang.Object org.lucane.common.net.ObjectConnection
ObjectConnection | public class ObjectConnection (Code) | | An object connection
|
ObjectConnection | public ObjectConnection(Socket socket)(Code) | | Constructor
Parameters: socket - the underlying socket |
addObjectListener | public void addObjectListener(ObjectListener ol)(Code) | | Add an ObjectListener to this connection
Parameters: ol - the listener |
bytesToInt | protected static int bytesToInt(byte[] bytes)(Code) | | Convert 4 bytes to 1 int
|
close | public void close()(Code) | | Close this connection
|
intToBytes | protected static byte[] intToBytes(int value)(Code) | | Convert 1 int to 4 bytes
|
listen | public void listen()(Code) | | Start the listening thread
|
readyToRead | public boolean readyToRead()(Code) | | Check if we have something to read
true if we can read |
|
|
|