us.ihmc.utilities.net.tcpServer
Class ReconnectingTCPConnection

java.lang.Object
  extended by us.ihmc.utilities.net.tcpServer.ReconnectingTCPConnection
Direct Known Subclasses:
ReconnectingTCPClient, ReconnectingTCPServer

public abstract class ReconnectingTCPConnection
extends java.lang.Object


Constructor Summary
ReconnectingTCPConnection(int bufferSize)
           
 
Method Summary
 void attachStateListener(NetStateListener stateListener)
           
abstract  void close()
           
abstract  void disconnect()
           
 byte[] getBuffer()
           
 int getBytesRead()
           
 boolean isConnected()
           
 void read(int numberOfBytes)
           
 void reset()
           
 void write(byte[] value)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ReconnectingTCPConnection

public ReconnectingTCPConnection(int bufferSize)
Method Detail

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()