public class SdkSocket extends DelegateSocket
Modifier and Type | Field and Description |
---|---|
private static org.apache.commons.logging.Log |
log |
sock
Constructor and Description |
---|
SdkSocket(java.net.Socket sock) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
void |
connect(java.net.SocketAddress endpoint) |
void |
connect(java.net.SocketAddress endpoint,
int timeout) |
private java.lang.String |
endpoint()
Returns the endpoint in the format of "address:port"
|
void |
shutdownInput() |
void |
shutdownOutput() |
bind, getChannel, getInetAddress, getInputStream, getKeepAlive, getLocalAddress, getLocalPort, getLocalSocketAddress, getOOBInline, getOutputStream, getPort, getReceiveBufferSize, getRemoteSocketAddress, getReuseAddress, getSendBufferSize, getSoLinger, getSoTimeout, getTcpNoDelay, getTrafficClass, isBound, isClosed, isConnected, isInputShutdown, isOutputShutdown, sendUrgentData, setKeepAlive, setOOBInline, setPerformancePreferences, setReceiveBufferSize, setReuseAddress, setSendBufferSize, setSoLinger, setSoTimeout, setTcpNoDelay, setTrafficClass, toString
private java.lang.String endpoint()
public void connect(java.net.SocketAddress endpoint) throws java.io.IOException
connect
in class DelegateSocket
java.io.IOException
public void connect(java.net.SocketAddress endpoint, int timeout) throws java.io.IOException
connect
in class DelegateSocket
java.io.IOException
public void close() throws java.io.IOException
close
in interface java.io.Closeable
close
in interface java.lang.AutoCloseable
close
in class DelegateSocket
java.io.IOException
public void shutdownInput() throws java.io.IOException
shutdownInput
in class DelegateSocket
java.io.IOException
public void shutdownOutput() throws java.io.IOException
shutdownOutput
in class DelegateSocket
java.io.IOException