seda.sandStorm.lib.aSocket
Class ListenSockState

java.lang.Object
  extended by seda.sandStorm.lib.aSocket.ListenSockState
Direct Known Subclasses:
ListenSockState, ListenSockState

public abstract class ListenSockState
extends java.lang.Object

Internal class used to represent a server socket listening on a given port.


Field Summary
protected  SinkIF compQ
           
private static boolean DEBUG
           
protected static int num_connections
           
protected  int port
           
protected  ATcpServerSocket servsock
           
protected  int writeClogThreshold
           
 
Constructor Summary
ListenSockState()
           
 
Method Summary
protected abstract  java.net.Socket accept()
           
protected abstract  void close()
           
protected abstract  void complete(ATcpConnection conn)
           
protected abstract  int getLocalPort()
           
protected abstract  void resume()
           
protected abstract  void suspend()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEBUG

private static final boolean DEBUG
See Also:
Constant Field Values

num_connections

protected static int num_connections

servsock

protected ATcpServerSocket servsock

port

protected int port

compQ

protected SinkIF compQ

writeClogThreshold

protected int writeClogThreshold
Constructor Detail

ListenSockState

public ListenSockState()
Method Detail

getLocalPort

protected abstract int getLocalPort()

accept

protected abstract java.net.Socket accept()
                                   throws java.io.IOException
Throws:
java.io.IOException

suspend

protected abstract void suspend()

resume

protected abstract void resume()

close

protected abstract void close()

complete

protected abstract void complete(ATcpConnection conn)