wt.util
Class WrappedPostlessSocket
java.lang.Object
java.net.Socket
wt.util.WrappedPostlessSocket
- All Implemented Interfaces:
- sun.rmi.transport.proxy.RMISocketInfo
- public class WrappedPostlessSocket
- extends Socket
- implements sun.rmi.transport.proxy.RMISocketInfo
Fields inherited from class java.net.Socket |
|
Methods inherited from class java.net.Socket |
bind, connect, connect, getChannel, getKeepAlive, getLocalSocketAddress, getOOBInline, getReceiveBufferSize, getRemoteSocketAddress, getReuseAddress, getSendBufferSize, getTrafficClass, isBound, isClosed, isConnected, isInputShutdown, isOutputShutdown, sendUrgentData, setKeepAlive, setOOBInline, setReceiveBufferSize, setReuseAddress, setSendBufferSize, setSocketImplFactory, setTrafficClass, shutdownInput, shutdownOutput |
POST
static final int POST
- See Also:
- Constant Field Values
jrmi
static final byte[] jrmi
pseudoPost
private boolean pseudoPost
postLessDebug
private final boolean postLessDebug
- See Also:
- Constant Field Values
VERBOSE_CLOSE
public static boolean VERBOSE_CLOSE
VERBOSE_IO
public static boolean VERBOSE_IO
socketCache
private static Cache socketCache
numSockets
private static int numSockets
bytesIn
private static long bytesIn
bytesOut
private static long bytesOut
inBufSize
private int inBufSize
outBufSize
private int outBufSize
socket
private Socket socket
inputStream
private InputStream inputStream
outputStream
private OutputStream outputStream
closed
private boolean closed
WrappedPostlessSocket
public WrappedPostlessSocket(Socket this_socket,
int in_buf_size,
int out_buf_size)
throws SocketException
incrementNumSockets
private static void incrementNumSockets()
decrementNumSockets
private static void decrementNumSockets()
getNumSockets
public static int getNumSockets()
getBytesIn
public static long getBytesIn()
getBytesOut
public static long getBytesOut()
setMaxSockets
public static void setMaxSockets(int max_sockets)
active
private void active(WrappedPostlessSocket wrapped_socket)
activeIn
private void activeIn(WrappedPostlessSocket wrapped_socket,
int bytes_in)
activeOut
private void activeOut(WrappedPostlessSocket wrapped_socket,
int bytes_out)
isReusable
public boolean isReusable()
- Specified by:
isReusable
in interface sun.rmi.transport.proxy.RMISocketInfo
finalize
protected void finalize()
throws Throwable
- Throws:
Throwable
getInputStream
public InputStream getInputStream()
throws IOException
- Throws:
IOException
getOutputStream
public OutputStream getOutputStream()
throws IOException
- Throws:
IOException
getInetAddress
public InetAddress getInetAddress()
getLocalAddress
public InetAddress getLocalAddress()
getPort
public int getPort()
getLocalPort
public int getLocalPort()
setTcpNoDelay
public void setTcpNoDelay(boolean on)
throws SocketException
- Throws:
SocketException
getTcpNoDelay
public boolean getTcpNoDelay()
throws SocketException
- Throws:
SocketException
setSoLinger
public void setSoLinger(boolean on,
int val)
throws SocketException
- Throws:
SocketException
getSoLinger
public int getSoLinger()
throws SocketException
- Throws:
SocketException
setSoTimeout
public void setSoTimeout(int timeout)
throws SocketException
- Throws:
SocketException
getSoTimeout
public int getSoTimeout()
throws SocketException
- Throws:
SocketException
close
public void close()
throws IOException
- Throws:
IOException
toString
public String toString()