|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object seda.sandStorm.lib.aSocket.ATcpServerSocket
public class ATcpServerSocket
This class represents an asynchronous server socket. An application creates an ATcpServerSocket to listen for incoming TCP connections on a given port; when a connection is received, an ATcpConnection object is pushed to the SinkIF associated with the ATcpServerSocket. The ATcpConnection is then used for communication.
ATcpConnection
Field Summary | |
---|---|
ListenSockState |
lss
Internal state used by aSocket implementation |
(package private) int |
serverPort
|
Constructor Summary | |
---|---|
protected |
ATcpServerSocket()
|
|
ATcpServerSocket(int serverPort,
SinkIF compQ)
Open a server socket listening on the given port. |
|
ATcpServerSocket(int serverPort,
SinkIF compQ,
int writeClogThreshold)
Open a server socket listening on the given port. |
Method Summary | |
---|---|
void |
close()
Asynchronously close this server socket. |
int |
getLocalPort()
Return the local port for this socket. |
int |
getPort()
Return the port that this socket is listening on. |
void |
resumeAccept()
Request that this server socket resume accepting new connections. |
void |
suspendAccept()
Request that this server socket stop accepting new connections. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public ListenSockState lss
int serverPort
Constructor Detail |
---|
public ATcpServerSocket(int serverPort, SinkIF compQ) throws java.io.IOException
java.io.IOException
public ATcpServerSocket(int serverPort, SinkIF compQ, int writeClogThreshold) throws java.io.IOException
writeClogThreshold
- The maximum number of outstanding write
requests to a connection established using this socket before a
SinkCloggedEvent is pushed onto the completion queue for that
connection. The default value is -1, which indicates that no
SinkCloggedEvents will be generated.
java.io.IOException
protected ATcpServerSocket()
Method Detail |
---|
public void suspendAccept()
public void resumeAccept()
public int getPort()
public int getLocalPort()
public void close()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |