wt.util
Class WrappedServerSocket

java.lang.Object
  extended byjava.net.ServerSocket
      extended bywt.util.WrappedServerSocket

public class WrappedServerSocket
extends ServerSocket


Field Summary
private static int ACCEPT_RETRY
           
private  boolean closed
           
private  int inBufSize
           
private  int outBufSize
           
private  ServerSocket socket
           
private  int timeout
           
private static boolean USE_POSTLESS_SOCKET
           
static boolean VERBOSE
           
private static String versionID
           
 
Fields inherited from class java.net.ServerSocket
 
Constructor Summary
WrappedServerSocket(ServerSocket socket, int timeout, int in_buf_size, int out_buf_size)
           
 
Method Summary
 Socket accept()
           
 void close()
           
 InetAddress getInetAddress()
           
 int getLocalPort()
           
 int getReceiveBufferSize()
           
 void setReceiveBufferSize(int size)
           
 String toString()
           
 
Methods inherited from class java.net.ServerSocket
bind, bind, getChannel, getLocalSocketAddress, getReuseAddress, getSoTimeout, implAccept, isBound, isClosed, setReuseAddress, setSocketFactory, setSoTimeout
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

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
Constructor Detail

WrappedServerSocket

public WrappedServerSocket(ServerSocket socket,
                           int timeout,
                           int in_buf_size,
                           int out_buf_size)
                    throws IOException
Method Detail

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()