seda.sandStorm.lib.aSocket.nbio
Class ListenSockState
java.lang.Object
seda.sandStorm.lib.aSocket.ListenSockState
seda.sandStorm.lib.aSocket.nbio.ListenSockState
public class ListenSockState
- extends ListenSockState
Internal class used to represent a server socket listening on a
given port.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DEBUG
private static final boolean DEBUG
- See Also:
- Constant Field Values
nbservsock
seda.nbio.NonblockingServerSocket nbservsock
si
private seda.nbio.SelectItem si
listen_selsource
private SelectSource listen_selsource
ListenSockState
public ListenSockState(ATcpListenRequest req,
SelectSourceIF listen_selsource)
throws java.io.IOException
- Throws:
java.io.IOException
ListenSockState
ListenSockState(ATcpListenRequest req)
throws java.io.IOException
- Throws:
java.io.IOException
accept
protected java.net.Socket accept()
throws java.io.IOException
- Specified by:
accept
in class ListenSockState
- Throws:
java.io.IOException
suspend
protected void suspend()
- Specified by:
suspend
in class ListenSockState
resume
protected void resume()
- Specified by:
resume
in class ListenSockState
close
protected void close()
- Specified by:
close
in class ListenSockState
complete
protected void complete(ATcpConnection conn)
- Specified by:
complete
in class ListenSockState
getLocalPort
public int getLocalPort()
- Specified by:
getLocalPort
in class ListenSockState