us.ihmc.utilities.net.tcpServer
Class ReconnectingTCPConnection
java.lang.Object
us.ihmc.utilities.net.tcpServer.ReconnectingTCPConnection
- Direct Known Subclasses:
- ReconnectingTCPClient, ReconnectingTCPServer
public abstract class ReconnectingTCPConnection
- extends java.lang.Object
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ReconnectingTCPConnection
public ReconnectingTCPConnection(int bufferSize)
getBytesRead
public int getBytesRead()
read
public void read(int numberOfBytes)
throws DisconnectedException
- Throws:
DisconnectedException
reset
public void reset()
getBuffer
public byte[] getBuffer()
write
public void write(byte[] value)
throws DisconnectedException
- Throws:
DisconnectedException
isConnected
public boolean isConnected()
attachStateListener
public void attachStateListener(NetStateListener stateListener)
disconnect
public abstract void disconnect()
close
public abstract void close()