class StandardSocket extends Socket
Constructor and Description |
---|
StandardSocket(I2PSocket socket) |
setSocketImplFactory
StandardSocket(I2PSocket socket)
public void bind(SocketAddress bindpoint)
bind
in class Socket
UnsupportedOperationException
- alwayspublic void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
close
in class Socket
IOException
public void connect(SocketAddress endpoint)
connect
in class Socket
UnsupportedOperationException
- alwayspublic void connect(SocketAddress endpoint, int timeout)
connect
in class Socket
UnsupportedOperationException
- alwayspublic SocketChannel getChannel()
getChannel
in class Socket
public InetAddress getInetAddress()
getInetAddress
in class Socket
public InputStream getInputStream() throws IOException
getInputStream
in class Socket
IOException
public boolean getKeepAlive()
getKeepAlive
in class Socket
public InetAddress getLocalAddress()
getLocalAddress
in class Socket
public int getLocalPort()
getLocalPort
in class Socket
public SocketAddress getLocalSocketAddress()
getLocalSocketAddress
in class Socket
public boolean getOOBInline()
getOOBInline
in class Socket
public OutputStream getOutputStream() throws IOException
getOutputStream
in class Socket
IOException
public int getReceiveBufferSize()
getReceiveBufferSize
in class Socket
public SocketAddress getRemoteSocketAddress()
getRemoteSocketAddress
in class Socket
public boolean getReuseAddress()
getReuseAddress
in class Socket
public int getSendBufferSize()
getSendBufferSize
in class Socket
public int getSoLinger()
getSoLinger
in class Socket
public int getSoTimeout()
getSoTimeout
in class Socket
public boolean getTcpNoDelay()
getTcpNoDelay
in class Socket
public int getTrafficClass()
getTrafficClass
in class Socket
public boolean isConnected()
isConnected
in class Socket
public boolean isInputShutdown()
isInputShutdown
in class Socket
public boolean isOutputShutdown()
isOutputShutdown
in class Socket
public void sendUrgentData(int data)
sendUrgentData
in class Socket
UnsupportedOperationException
- alwayspublic void setKeepAlive(boolean on)
setKeepAlive
in class Socket
public void setOOBInline(boolean on)
setOOBInline
in class Socket
UnsupportedOperationException
- if on is truepublic void setPerformancePreferences(int connectionTime, int latency, int bandwidth)
setPerformancePreferences
in class Socket
public void setReceiveBufferSize(int size)
setReceiveBufferSize
in class Socket
public void setReuseAddress(boolean on)
setReuseAddress
in class Socket
public void setSendBufferSize(int size)
setSendBufferSize
in class Socket
public void setSoLinger(boolean on, int linger)
setSoLinger
in class Socket
public void setSoTimeout(int timeout) throws SocketException
setSoTimeout
in class Socket
SocketException
public void setTcpNoDelay(boolean on)
setTcpNoDelay
in class Socket
public void setTrafficClass(int tc)
setTrafficClass
in class Socket
public void shutdownInput() throws IOException
shutdownInput
in class Socket
IOException
public void shutdownOutput() throws IOException
shutdownOutput
in class Socket
IOException