Closeable, AutoCloseableclass StandardSocket extends Socket
| Constructor | Description |
|---|---|
StandardSocket(I2PSocket socket) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetOption, setOption, setSocketImplFactory, supportedOptionsStandardSocket(I2PSocket socket)
public void bind(SocketAddress bindpoint)
bind in class SocketUnsupportedOperationException - alwayspublic void close()
throws IOException
close in interface AutoCloseableclose in interface Closeableclose in class SocketIOExceptionpublic void connect(SocketAddress endpoint)
connect in class SocketUnsupportedOperationException - alwayspublic void connect(SocketAddress endpoint, int timeout)
connect in class SocketUnsupportedOperationException - alwayspublic SocketChannel getChannel()
getChannel in class Socketpublic InetAddress getInetAddress()
getInetAddress in class Socketpublic InputStream getInputStream() throws IOException
getInputStream in class SocketIOExceptionpublic boolean getKeepAlive()
getKeepAlive in class Socketpublic InetAddress getLocalAddress()
getLocalAddress in class Socketpublic int getLocalPort()
getLocalPort in class Socketpublic SocketAddress getLocalSocketAddress()
getLocalSocketAddress in class Socketpublic boolean getOOBInline()
getOOBInline in class Socketpublic OutputStream getOutputStream() throws IOException
getOutputStream in class SocketIOExceptionpublic int getReceiveBufferSize()
getReceiveBufferSize in class Socketpublic SocketAddress getRemoteSocketAddress()
getRemoteSocketAddress in class Socketpublic boolean getReuseAddress()
getReuseAddress in class Socketpublic int getSendBufferSize()
getSendBufferSize in class Socketpublic int getSoLinger()
getSoLinger in class Socketpublic int getSoTimeout()
getSoTimeout in class Socketpublic boolean getTcpNoDelay()
getTcpNoDelay in class Socketpublic int getTrafficClass()
getTrafficClass in class Socketpublic boolean isConnected()
isConnected in class Socketpublic boolean isInputShutdown()
isInputShutdown in class Socketpublic boolean isOutputShutdown()
isOutputShutdown in class Socketpublic void sendUrgentData(int data)
sendUrgentData in class SocketUnsupportedOperationException - alwayspublic void setKeepAlive(boolean on)
setKeepAlive in class Socketpublic void setOOBInline(boolean on)
setOOBInline in class SocketUnsupportedOperationException - if on is truepublic void setPerformancePreferences(int connectionTime,
int latency,
int bandwidth)
setPerformancePreferences in class Socketpublic void setReceiveBufferSize(int size)
setReceiveBufferSize in class Socketpublic void setReuseAddress(boolean on)
setReuseAddress in class Socketpublic void setSendBufferSize(int size)
setSendBufferSize in class Socketpublic void setSoLinger(boolean on,
int linger)
setSoLinger in class Socketpublic void setSoTimeout(int timeout)
throws SocketException
setSoTimeout in class SocketSocketExceptionpublic void setTcpNoDelay(boolean on)
setTcpNoDelay in class Socketpublic void setTrafficClass(int tc)
setTrafficClass in class Socketpublic void shutdownInput()
throws IOException
shutdownInput in class SocketIOExceptionpublic void shutdownOutput()
throws IOException
shutdownOutput in class SocketIOException