Additional top-level class in compilation unit: TimeoutOutputStream.
| Modifier and Type | Field and Description |
|---|---|
| private final ScheduledExecutorService | |
| private final Socket | |
| private final int |
| Access | Constructor and Description |
|---|---|
| public | |
| public | |
| public | |
| public | WriteTimeoutSocket(InetAddress address, int port, InetAddress localAddress, int localPort, int timeout)
|
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | bind(SocketAddress
the local)SocketAddress to bind toOverrides java. |
| public void | |
| public void | connect(SocketAddress
the remote)SocketAddressOverrides java. |
| public void | connect(SocketAddress
the remote, int SocketAddressthe timeout value to be used in milliseconds. timeout)Overrides java. |
| public SocketChannel | getChannel()
Overrides java. SocketChannel
object associated with this socket, if any.
|
| public FileDescriptor | Returns: the FileDescriptor objectKLUDGE for Android, which has this illegal non-Java Compatible method. |
| public InetAddress | getInetAddress()
Overrides java. |
| public InputStream | |
| public boolean | |
| public InetAddress | getLocalAddress()
Overrides java. |
| public int | getLocalPort()
Overrides java. |
| public SocketAddress | getLocalSocketAddress()
Overrides java. |
| public boolean | |
| public <T> T | getOption(SocketOption<T>
The socket option so)Overrides java. |
| public synchronized OutputStream | getOutputStream()
Overrides java. |
| public int | getPort()
Overrides java. |
| public int | getReceiveBufferSize()
Overrides java. SO_RCVBUF option
for this Socket, that is the buffer size used by the platform
for input on this Socket.
|
| public SocketAddress | getRemoteSocketAddress()
Overrides java. null if it is unconnected.
|
| public boolean | |
| public int | getSendBufferSize()
Overrides java. SO_SNDBUF option
for this Socket, that is the buffer size used by the platform
for output on this Socket.
|
| public int | |
| public int | |
| public boolean | |
| public int | getTrafficClass()
Overrides java.
As the underlying network implementation may ignore the
traffic class or type-of-service set using |
| public boolean | |
| public boolean | |
| public boolean | |
| public boolean | isInputShutdown()
Overrides java. |
| public boolean | isOutputShutdown()
Overrides java. |
| public void | sendUrgentData(int
The byte of data to send data)Overrides java. |
| public void | setKeepAlive(boolean
whether or not to have socket keep alive turned on. on)Overrides java. SO_KEEPALIVE.
|
| public void | setOOBInline(boolean on)
Overrides java. SO_OOBINLINE
(receipt of TCP urgent data)
By default, this option is disabled and TCP urgent data received on a
socket is silently discarded.
|
| public <T> Socket | setOption(SocketOption<T>
The socket option so, T The value of the socket option. A value of val)null
may be valid for some options.Overrides java. |
| public void | setPerformancePreferences(int
An connectionTime, int int expressing the relative importance of a short
connection timeAn latency, int int expressing the relative importance of low
latencyAn bandwidth)int expressing the relative importance of high
bandwidthOverrides java. |
| public void | setReceiveBufferSize(int
the size to which to set the receive buffer
size. This value must be greater than 0. size)Overrides java. SO_RCVBUF option to the
specified value for this Socket.
|
| public void | setReuseAddress(boolean
whether to enable or disable the socket option on)Overrides java. SO_REUSEADDR
socket option.
|
| public void | setSendBufferSize(int
the size to which to set the send buffer
size. This value must be greater than 0. size)Overrides java. SO_SNDBUF option to the
specified value for this Socket.
|
| public void | setSoLinger(boolean
whether or not to linger on. on, int how long to linger for, if on is true. linger)Overrides java. SO_LINGER with the
specified linger time in seconds.
|
| public void | setSoTimeout(int
the specified timeout, in milliseconds. timeout)Overrides java. SO_TIMEOUT
with the specified timeout, in milliseconds.
|
| public void | setTcpNoDelay(boolean
true to enable TCP_NODELAY,
false to disable.Overrides java. TCP_NODELAY
(disable/enable Nagle's algorithm).
|
| public void | setTrafficClass(int
an tc)int value for the bitset.Overrides java. |
| public void | shutdownInput()
Overrides java. |
| public void | shutdownOutput()
Overrides java. |
| public Set | supportedOptions()
Overrides java. |
| public String |