public class QServerSocketWrapper extends QServerSocket
Constructor and Description |
---|
QServerSocketWrapper() |
QServerSocketWrapper(java.net.ServerSocket ss) |
Modifier and Type | Method and Description |
---|---|
boolean |
accept(QSocket qSocket)
Accepts a new socket.
|
void |
close()
Closes the underlying socket.
|
QSocket |
createSocket()
Creates a new socket object.
|
java.net.InetAddress |
getLocalAddress() |
int |
getLocalPort() |
java.nio.channels.Selector |
getSelector() |
void |
init(java.net.ServerSocket ss) |
boolean |
isTcpKeepalive() |
boolean |
isTcpNoDelay() |
void |
setConnectionSocketTimeout(int socketTimeout)
Sets the connection read timeout.
|
void |
setTcpKeepalive(boolean isEnable) |
void |
setTcpNoDelay(boolean delay) |
java.lang.String |
toString() |
getSystemFD, isClosed, isJni, isTcpCork, listen, setSaveOnExec, setTcpCork
public QServerSocketWrapper()
public QServerSocketWrapper(java.net.ServerSocket ss)
public void init(java.net.ServerSocket ss)
public void setTcpNoDelay(boolean delay)
setTcpNoDelay
in class QServerSocket
public boolean isTcpNoDelay()
isTcpNoDelay
in class QServerSocket
public void setTcpKeepalive(boolean isEnable)
setTcpKeepalive
in class QServerSocket
public boolean isTcpKeepalive()
isTcpKeepalive
in class QServerSocket
public void setConnectionSocketTimeout(int socketTimeout)
QServerSocket
setConnectionSocketTimeout
in class QServerSocket
public boolean accept(QSocket qSocket) throws java.io.IOException
accept
in class QServerSocket
java.io.IOException
public QSocket createSocket() throws java.io.IOException
createSocket
in class QServerSocket
java.io.IOException
public java.net.InetAddress getLocalAddress()
getLocalAddress
in class QServerSocket
public int getLocalPort()
getLocalPort
in class QServerSocket
public java.nio.channels.Selector getSelector()
getSelector
in class QServerSocket
public void close() throws java.io.IOException
close
in class QServerSocket
java.io.IOException
public java.lang.String toString()
toString
in class QServerSocket