public class WriteTimeoutSocket
extends java.net.Socket
| Constructor and Description |
|---|
WriteTimeoutSocket(java.net.InetAddress address,
int port,
java.net.InetAddress localAddress,
int localPort,
int timeout) |
WriteTimeoutSocket(java.net.InetAddress address,
int port,
int timeout) |
WriteTimeoutSocket(int timeout) |
WriteTimeoutSocket(java.net.Socket socket,
int timeout) |
WriteTimeoutSocket(java.lang.String host,
int port,
java.net.InetAddress localAddress,
int localPort,
int timeout) |
WriteTimeoutSocket(java.lang.String host,
int port,
int timeout) |
| Modifier and Type | Method and Description |
|---|---|
void |
bind(java.net.SocketAddress local) |
void |
close() |
void |
connect(java.net.SocketAddress remote) |
void |
connect(java.net.SocketAddress remote,
int timeout) |
java.nio.channels.SocketChannel |
getChannel() |
java.io.FileDescriptor |
getFileDescriptor$()
KLUDGE for Android, which has this illegal non-Java Compatible method.
|
java.net.InetAddress |
getInetAddress() |
java.io.InputStream |
getInputStream() |
boolean |
getKeepAlive() |
java.net.InetAddress |
getLocalAddress() |
int |
getLocalPort() |
java.net.SocketAddress |
getLocalSocketAddress() |
boolean |
getOOBInline() |
<T> T |
getOption(java.net.SocketOption<T> so) |
java.io.OutputStream |
getOutputStream() |
int |
getPort() |
int |
getReceiveBufferSize() |
java.net.SocketAddress |
getRemoteSocketAddress() |
boolean |
getReuseAddress() |
int |
getSendBufferSize() |
int |
getSoLinger() |
int |
getSoTimeout() |
boolean |
getTcpNoDelay() |
int |
getTrafficClass() |
boolean |
isBound() |
boolean |
isClosed() |
boolean |
isConnected() |
boolean |
isInputShutdown() |
boolean |
isOutputShutdown() |
void |
sendUrgentData(int data) |
void |
setKeepAlive(boolean on) |
void |
setOOBInline(boolean on) |
<T> java.net.Socket |
setOption(java.net.SocketOption<T> so,
T val) |
void |
setPerformancePreferences(int connectionTime,
int latency,
int bandwidth) |
void |
setReceiveBufferSize(int size) |
void |
setReuseAddress(boolean on) |
void |
setSendBufferSize(int size) |
void |
setSoLinger(boolean on,
int linger) |
void |
setSoTimeout(int timeout) |
void |
setTcpNoDelay(boolean on) |
void |
setTrafficClass(int tc) |
void |
shutdownInput() |
void |
shutdownOutput() |
java.util.Set<java.net.SocketOption<?>> |
supportedOptions() |
java.lang.String |
toString() |
public WriteTimeoutSocket(java.net.Socket socket,
int timeout)
throws java.io.IOException
java.io.IOExceptionpublic WriteTimeoutSocket(int timeout)
throws java.io.IOException
java.io.IOExceptionpublic WriteTimeoutSocket(java.net.InetAddress address,
int port,
int timeout)
throws java.io.IOException
java.io.IOExceptionpublic WriteTimeoutSocket(java.net.InetAddress address,
int port,
java.net.InetAddress localAddress,
int localPort,
int timeout)
throws java.io.IOException
java.io.IOExceptionpublic WriteTimeoutSocket(java.lang.String host,
int port,
int timeout)
throws java.io.IOException
java.io.IOExceptionpublic WriteTimeoutSocket(java.lang.String host,
int port,
java.net.InetAddress localAddress,
int localPort,
int timeout)
throws java.io.IOException
java.io.IOExceptionpublic void connect(java.net.SocketAddress remote)
throws java.io.IOException
connect in class java.net.Socketjava.io.IOExceptionpublic void connect(java.net.SocketAddress remote,
int timeout)
throws java.io.IOException
connect in class java.net.Socketjava.io.IOExceptionpublic void bind(java.net.SocketAddress local)
throws java.io.IOException
bind in class java.net.Socketjava.io.IOExceptionpublic java.net.SocketAddress getRemoteSocketAddress()
getRemoteSocketAddress in class java.net.Socketpublic java.net.SocketAddress getLocalSocketAddress()
getLocalSocketAddress in class java.net.Socketpublic void setPerformancePreferences(int connectionTime,
int latency,
int bandwidth)
setPerformancePreferences in class java.net.Socketpublic java.nio.channels.SocketChannel getChannel()
getChannel in class java.net.Socketpublic java.net.InetAddress getInetAddress()
getInetAddress in class java.net.Socketpublic java.net.InetAddress getLocalAddress()
getLocalAddress in class java.net.Socketpublic int getPort()
getPort in class java.net.Socketpublic int getLocalPort()
getLocalPort in class java.net.Socketpublic java.io.InputStream getInputStream()
throws java.io.IOException
getInputStream in class java.net.Socketjava.io.IOExceptionpublic java.io.OutputStream getOutputStream()
throws java.io.IOException
getOutputStream in class java.net.Socketjava.io.IOExceptionpublic void setTcpNoDelay(boolean on)
throws java.net.SocketException
setTcpNoDelay in class java.net.Socketjava.net.SocketExceptionpublic boolean getTcpNoDelay()
throws java.net.SocketException
getTcpNoDelay in class java.net.Socketjava.net.SocketExceptionpublic void setSoLinger(boolean on,
int linger)
throws java.net.SocketException
setSoLinger in class java.net.Socketjava.net.SocketExceptionpublic int getSoLinger()
throws java.net.SocketException
getSoLinger in class java.net.Socketjava.net.SocketExceptionpublic void sendUrgentData(int data)
throws java.io.IOException
sendUrgentData in class java.net.Socketjava.io.IOExceptionpublic void setOOBInline(boolean on)
throws java.net.SocketException
setOOBInline in class java.net.Socketjava.net.SocketExceptionpublic boolean getOOBInline()
throws java.net.SocketException
getOOBInline in class java.net.Socketjava.net.SocketExceptionpublic void setSoTimeout(int timeout)
throws java.net.SocketException
setSoTimeout in class java.net.Socketjava.net.SocketExceptionpublic int getSoTimeout()
throws java.net.SocketException
getSoTimeout in class java.net.Socketjava.net.SocketExceptionpublic void setSendBufferSize(int size)
throws java.net.SocketException
setSendBufferSize in class java.net.Socketjava.net.SocketExceptionpublic int getSendBufferSize()
throws java.net.SocketException
getSendBufferSize in class java.net.Socketjava.net.SocketExceptionpublic void setReceiveBufferSize(int size)
throws java.net.SocketException
setReceiveBufferSize in class java.net.Socketjava.net.SocketExceptionpublic int getReceiveBufferSize()
throws java.net.SocketException
getReceiveBufferSize in class java.net.Socketjava.net.SocketExceptionpublic void setKeepAlive(boolean on)
throws java.net.SocketException
setKeepAlive in class java.net.Socketjava.net.SocketExceptionpublic boolean getKeepAlive()
throws java.net.SocketException
getKeepAlive in class java.net.Socketjava.net.SocketExceptionpublic void setTrafficClass(int tc)
throws java.net.SocketException
setTrafficClass in class java.net.Socketjava.net.SocketExceptionpublic int getTrafficClass()
throws java.net.SocketException
getTrafficClass in class java.net.Socketjava.net.SocketExceptionpublic void setReuseAddress(boolean on)
throws java.net.SocketException
setReuseAddress in class java.net.Socketjava.net.SocketExceptionpublic boolean getReuseAddress()
throws java.net.SocketException
getReuseAddress in class java.net.Socketjava.net.SocketExceptionpublic void close()
throws java.io.IOException
close in interface java.io.Closeableclose in interface java.lang.AutoCloseableclose in class java.net.Socketjava.io.IOExceptionpublic void shutdownInput()
throws java.io.IOException
shutdownInput in class java.net.Socketjava.io.IOExceptionpublic void shutdownOutput()
throws java.io.IOException
shutdownOutput in class java.net.Socketjava.io.IOExceptionpublic java.lang.String toString()
toString in class java.net.Socketpublic boolean isConnected()
isConnected in class java.net.Socketpublic boolean isBound()
isBound in class java.net.Socketpublic boolean isClosed()
isClosed in class java.net.Socketpublic boolean isInputShutdown()
isInputShutdown in class java.net.Socketpublic boolean isOutputShutdown()
isOutputShutdown in class java.net.Socketpublic <T> java.net.Socket setOption(java.net.SocketOption<T> so,
T val)
throws java.io.IOException
java.io.IOExceptionpublic <T> T getOption(java.net.SocketOption<T> so)
throws java.io.IOException
java.io.IOExceptionpublic java.util.Set<java.net.SocketOption<?>> supportedOptions()
public java.io.FileDescriptor getFileDescriptor$()
Copyright © 2010 - 2023 Adobe. All Rights Reserved