public class WriteTimeoutSocket extends Socket
Constructor and Description |
---|
WriteTimeoutSocket(InetAddress address,
int port,
InetAddress localAddress,
int localPort,
int timeout) |
WriteTimeoutSocket(InetAddress address,
int port,
int timeout) |
WriteTimeoutSocket(int timeout) |
WriteTimeoutSocket(Socket socket,
int timeout) |
WriteTimeoutSocket(String host,
int port,
InetAddress localAddress,
int localPort,
int timeout) |
WriteTimeoutSocket(String host,
int port,
int timeout) |
setSocketImplFactory
public WriteTimeoutSocket(Socket socket, int timeout) throws IOException
IOException
public WriteTimeoutSocket(int timeout) throws IOException
IOException
public WriteTimeoutSocket(InetAddress address, int port, int timeout) throws IOException
IOException
public WriteTimeoutSocket(InetAddress address, int port, InetAddress localAddress, int localPort, int timeout) throws IOException
IOException
public WriteTimeoutSocket(String host, int port, int timeout) throws IOException
IOException
public WriteTimeoutSocket(String host, int port, InetAddress localAddress, int localPort, int timeout) throws IOException
IOException
public void connect(SocketAddress remote) throws IOException
connect
in class Socket
IOException
public void connect(SocketAddress remote, int timeout) throws IOException
connect
in class Socket
IOException
public void bind(SocketAddress local) throws IOException
bind
in class Socket
IOException
public SocketAddress getRemoteSocketAddress()
getRemoteSocketAddress
in class Socket
public SocketAddress getLocalSocketAddress()
getLocalSocketAddress
in class Socket
public void setPerformancePreferences(int connectionTime, int latency, int bandwidth)
setPerformancePreferences
in class Socket
public SocketChannel getChannel()
getChannel
in class Socket
public InetAddress getInetAddress()
getInetAddress
in class Socket
public InetAddress getLocalAddress()
getLocalAddress
in class Socket
public int getLocalPort()
getLocalPort
in class Socket
public InputStream getInputStream() throws IOException
getInputStream
in class Socket
IOException
public OutputStream getOutputStream() throws IOException
getOutputStream
in class Socket
IOException
public void setTcpNoDelay(boolean on) throws SocketException
setTcpNoDelay
in class Socket
SocketException
public boolean getTcpNoDelay() throws SocketException
getTcpNoDelay
in class Socket
SocketException
public void setSoLinger(boolean on, int linger) throws SocketException
setSoLinger
in class Socket
SocketException
public int getSoLinger() throws SocketException
getSoLinger
in class Socket
SocketException
public void sendUrgentData(int data) throws IOException
sendUrgentData
in class Socket
IOException
public void setOOBInline(boolean on) throws SocketException
setOOBInline
in class Socket
SocketException
public boolean getOOBInline() throws SocketException
getOOBInline
in class Socket
SocketException
public void setSoTimeout(int timeout) throws SocketException
setSoTimeout
in class Socket
SocketException
public int getSoTimeout() throws SocketException
getSoTimeout
in class Socket
SocketException
public void setSendBufferSize(int size) throws SocketException
setSendBufferSize
in class Socket
SocketException
public int getSendBufferSize() throws SocketException
getSendBufferSize
in class Socket
SocketException
public void setReceiveBufferSize(int size) throws SocketException
setReceiveBufferSize
in class Socket
SocketException
public int getReceiveBufferSize() throws SocketException
getReceiveBufferSize
in class Socket
SocketException
public void setKeepAlive(boolean on) throws SocketException
setKeepAlive
in class Socket
SocketException
public boolean getKeepAlive() throws SocketException
getKeepAlive
in class Socket
SocketException
public void setTrafficClass(int tc) throws SocketException
setTrafficClass
in class Socket
SocketException
public int getTrafficClass() throws SocketException
getTrafficClass
in class Socket
SocketException
public void setReuseAddress(boolean on) throws SocketException
setReuseAddress
in class Socket
SocketException
public boolean getReuseAddress() throws SocketException
getReuseAddress
in class Socket
SocketException
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
close
in class Socket
IOException
public void shutdownInput() throws IOException
shutdownInput
in class Socket
IOException
public void shutdownOutput() throws IOException
shutdownOutput
in class Socket
IOException
public boolean isConnected()
isConnected
in class Socket
public boolean isInputShutdown()
isInputShutdown
in class Socket
public boolean isOutputShutdown()
isOutputShutdown
in class Socket
public <T> Socket setOption(SocketOption<T> so, T val) throws IOException
IOException
public <T> T getOption(SocketOption<T> so) throws IOException
IOException
public Set<SocketOption<?>> supportedOptions()
public FileDescriptor getFileDescriptor$()
Copyright © 2019 JBoss by Red Hat. All rights reserved.