public abstract class QServerSocket
extends java.lang.Object
Constructor and Description |
---|
QServerSocket() |
Modifier and Type | Method and Description |
---|---|
abstract boolean |
accept(QSocket socket) |
abstract void |
close() |
abstract QSocket |
createSocket() |
abstract java.net.InetAddress |
getLocalAddress() |
abstract int |
getLocalPort() |
java.nio.channels.Selector |
getSelector() |
int |
getSystemFD() |
boolean |
isClosed() |
boolean |
isJni() |
boolean |
isTcpCork() |
boolean |
isTcpKeepalive() |
boolean |
isTcpNoDelay() |
void |
listen(int backlog)
Sets the socket's listen backlog.
|
abstract void |
setConnectionSocketTimeout(int ms)
Sets the connection read timeout.
|
boolean |
setSaveOnExec() |
void |
setTcpCork(boolean isCork) |
void |
setTcpKeepalive(boolean isKeepalive) |
void |
setTcpNoDelay(boolean delay) |
java.lang.String |
toString() |
public void setTcpNoDelay(boolean delay)
public boolean isTcpNoDelay()
public void setTcpKeepalive(boolean isKeepalive)
public boolean isTcpKeepalive()
public void setTcpCork(boolean isCork)
public boolean isTcpCork()
public boolean isJni()
public boolean setSaveOnExec()
public int getSystemFD()
public void listen(int backlog)
public abstract void setConnectionSocketTimeout(int ms)
public abstract boolean accept(QSocket socket) throws java.io.IOException
java.io.IOException
public abstract QSocket createSocket() throws java.io.IOException
java.io.IOException
public abstract java.net.InetAddress getLocalAddress()
public abstract int getLocalPort()
public java.nio.channels.Selector getSelector()
public boolean isClosed()
public abstract void close() throws java.io.IOException
java.io.IOException
public java.lang.String toString()
toString
in class java.lang.Object