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) |
setSocketImplFactorypublic WriteTimeoutSocket(Socket socket, int timeout) throws IOException
IOExceptionpublic WriteTimeoutSocket(int timeout)
throws IOException
IOExceptionpublic WriteTimeoutSocket(InetAddress address, int port, int timeout) throws IOException
IOExceptionpublic WriteTimeoutSocket(InetAddress address, int port, InetAddress localAddress, int localPort, int timeout) throws IOException
IOExceptionpublic WriteTimeoutSocket(String host, int port, int timeout) throws IOException
IOExceptionpublic WriteTimeoutSocket(String host, int port, InetAddress localAddress, int localPort, int timeout) throws IOException
IOExceptionpublic void connect(SocketAddress remote) throws IOException
connect in class SocketIOExceptionpublic void connect(SocketAddress remote, int timeout) throws IOException
connect in class SocketIOExceptionpublic void bind(SocketAddress local) throws IOException
bind in class SocketIOExceptionpublic SocketAddress getRemoteSocketAddress()
getRemoteSocketAddress in class Socketpublic SocketAddress getLocalSocketAddress()
getLocalSocketAddress in class Socketpublic void setPerformancePreferences(int connectionTime,
int latency,
int bandwidth)
setPerformancePreferences in class Socketpublic SocketChannel getChannel()
getChannel in class Socketpublic InetAddress getInetAddress()
getInetAddress in class Socketpublic InetAddress getLocalAddress()
getLocalAddress in class Socketpublic int getLocalPort()
getLocalPort in class Socketpublic InputStream getInputStream() throws IOException
getInputStream in class SocketIOExceptionpublic OutputStream getOutputStream() throws IOException
getOutputStream in class SocketIOExceptionpublic void setTcpNoDelay(boolean on)
throws SocketException
setTcpNoDelay in class SocketSocketExceptionpublic boolean getTcpNoDelay()
throws SocketException
getTcpNoDelay in class SocketSocketExceptionpublic void setSoLinger(boolean on,
int linger)
throws SocketException
setSoLinger in class SocketSocketExceptionpublic int getSoLinger()
throws SocketException
getSoLinger in class SocketSocketExceptionpublic void sendUrgentData(int data)
throws IOException
sendUrgentData in class SocketIOExceptionpublic void setOOBInline(boolean on)
throws SocketException
setOOBInline in class SocketSocketExceptionpublic boolean getOOBInline()
throws SocketException
getOOBInline in class SocketSocketExceptionpublic void setSoTimeout(int timeout)
throws SocketException
setSoTimeout in class SocketSocketExceptionpublic int getSoTimeout()
throws SocketException
getSoTimeout in class SocketSocketExceptionpublic void setSendBufferSize(int size)
throws SocketException
setSendBufferSize in class SocketSocketExceptionpublic int getSendBufferSize()
throws SocketException
getSendBufferSize in class SocketSocketExceptionpublic void setReceiveBufferSize(int size)
throws SocketException
setReceiveBufferSize in class SocketSocketExceptionpublic int getReceiveBufferSize()
throws SocketException
getReceiveBufferSize in class SocketSocketExceptionpublic void setKeepAlive(boolean on)
throws SocketException
setKeepAlive in class SocketSocketExceptionpublic boolean getKeepAlive()
throws SocketException
getKeepAlive in class SocketSocketExceptionpublic void setTrafficClass(int tc)
throws SocketException
setTrafficClass in class SocketSocketExceptionpublic int getTrafficClass()
throws SocketException
getTrafficClass in class SocketSocketExceptionpublic void setReuseAddress(boolean on)
throws SocketException
setReuseAddress in class SocketSocketExceptionpublic boolean getReuseAddress()
throws SocketException
getReuseAddress in class SocketSocketExceptionpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class SocketIOExceptionpublic void shutdownInput()
throws IOException
shutdownInput in class SocketIOExceptionpublic void shutdownOutput()
throws IOException
shutdownOutput in class SocketIOExceptionpublic boolean isConnected()
isConnected in class Socketpublic boolean isInputShutdown()
isInputShutdown in class Socketpublic boolean isOutputShutdown()
isOutputShutdown in class Socketpublic FileDescriptor getFileDescriptor$()
Copyright © 2017 JBoss by Red Hat. All rights reserved.