wt.util
Class WrappedServerSocket
java.lang.Object
java.net.ServerSocket
wt.util.WrappedServerSocket
- public class WrappedServerSocket
- extends ServerSocket
Methods inherited from class java.net.ServerSocket |
bind, bind, getChannel, getLocalSocketAddress, getReuseAddress, getSoTimeout, implAccept, isBound, isClosed, setReuseAddress, setSocketFactory, setSoTimeout |
versionID
private static final String versionID
- See Also:
- Constant Field Values
ACCEPT_RETRY
private static final int ACCEPT_RETRY
USE_POSTLESS_SOCKET
private static final boolean USE_POSTLESS_SOCKET
VERBOSE
public static boolean VERBOSE
timeout
private int timeout
inBufSize
private int inBufSize
outBufSize
private int outBufSize
socket
private ServerSocket socket
closed
private boolean closed
WrappedServerSocket
public WrappedServerSocket(ServerSocket socket,
int timeout,
int in_buf_size,
int out_buf_size)
throws IOException
accept
public Socket accept()
throws IOException
- Throws:
IOException
getInetAddress
public InetAddress getInetAddress()
getLocalPort
public int getLocalPort()
setReceiveBufferSize
public void setReceiveBufferSize(int size)
throws SocketException
- Throws:
SocketException
getReceiveBufferSize
public int getReceiveBufferSize()
throws SocketException
- Throws:
SocketException
close
public void close()
throws IOException
- Throws:
IOException
toString
public String toString()