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.IOException
public WriteTimeoutSocket(int timeout) throws java.io.IOException
java.io.IOException
public WriteTimeoutSocket(java.net.InetAddress address, int port, int timeout) throws java.io.IOException
java.io.IOException
public WriteTimeoutSocket(java.net.InetAddress address, int port, java.net.InetAddress localAddress, int localPort, int timeout) throws java.io.IOException
java.io.IOException
public WriteTimeoutSocket(java.lang.String host, int port, int timeout) throws java.io.IOException
java.io.IOException
public WriteTimeoutSocket(java.lang.String host, int port, java.net.InetAddress localAddress, int localPort, int timeout) throws java.io.IOException
java.io.IOException
public void connect(java.net.SocketAddress remote) throws java.io.IOException
connect
in class java.net.Socket
java.io.IOException
public void connect(java.net.SocketAddress remote, int timeout) throws java.io.IOException
connect
in class java.net.Socket
java.io.IOException
public void bind(java.net.SocketAddress local) throws java.io.IOException
bind
in class java.net.Socket
java.io.IOException
public java.net.SocketAddress getRemoteSocketAddress()
getRemoteSocketAddress
in class java.net.Socket
public java.net.SocketAddress getLocalSocketAddress()
getLocalSocketAddress
in class java.net.Socket
public void setPerformancePreferences(int connectionTime, int latency, int bandwidth)
setPerformancePreferences
in class java.net.Socket
public java.nio.channels.SocketChannel getChannel()
getChannel
in class java.net.Socket
public java.net.InetAddress getInetAddress()
getInetAddress
in class java.net.Socket
public java.net.InetAddress getLocalAddress()
getLocalAddress
in class java.net.Socket
public int getPort()
getPort
in class java.net.Socket
public int getLocalPort()
getLocalPort
in class java.net.Socket
public java.io.InputStream getInputStream() throws java.io.IOException
getInputStream
in class java.net.Socket
java.io.IOException
public java.io.OutputStream getOutputStream() throws java.io.IOException
getOutputStream
in class java.net.Socket
java.io.IOException
public void setTcpNoDelay(boolean on) throws java.net.SocketException
setTcpNoDelay
in class java.net.Socket
java.net.SocketException
public boolean getTcpNoDelay() throws java.net.SocketException
getTcpNoDelay
in class java.net.Socket
java.net.SocketException
public void setSoLinger(boolean on, int linger) throws java.net.SocketException
setSoLinger
in class java.net.Socket
java.net.SocketException
public int getSoLinger() throws java.net.SocketException
getSoLinger
in class java.net.Socket
java.net.SocketException
public void sendUrgentData(int data) throws java.io.IOException
sendUrgentData
in class java.net.Socket
java.io.IOException
public void setOOBInline(boolean on) throws java.net.SocketException
setOOBInline
in class java.net.Socket
java.net.SocketException
public boolean getOOBInline() throws java.net.SocketException
getOOBInline
in class java.net.Socket
java.net.SocketException
public void setSoTimeout(int timeout) throws java.net.SocketException
setSoTimeout
in class java.net.Socket
java.net.SocketException
public int getSoTimeout() throws java.net.SocketException
getSoTimeout
in class java.net.Socket
java.net.SocketException
public void setSendBufferSize(int size) throws java.net.SocketException
setSendBufferSize
in class java.net.Socket
java.net.SocketException
public int getSendBufferSize() throws java.net.SocketException
getSendBufferSize
in class java.net.Socket
java.net.SocketException
public void setReceiveBufferSize(int size) throws java.net.SocketException
setReceiveBufferSize
in class java.net.Socket
java.net.SocketException
public int getReceiveBufferSize() throws java.net.SocketException
getReceiveBufferSize
in class java.net.Socket
java.net.SocketException
public void setKeepAlive(boolean on) throws java.net.SocketException
setKeepAlive
in class java.net.Socket
java.net.SocketException
public boolean getKeepAlive() throws java.net.SocketException
getKeepAlive
in class java.net.Socket
java.net.SocketException
public void setTrafficClass(int tc) throws java.net.SocketException
setTrafficClass
in class java.net.Socket
java.net.SocketException
public int getTrafficClass() throws java.net.SocketException
getTrafficClass
in class java.net.Socket
java.net.SocketException
public void setReuseAddress(boolean on) throws java.net.SocketException
setReuseAddress
in class java.net.Socket
java.net.SocketException
public boolean getReuseAddress() throws java.net.SocketException
getReuseAddress
in class java.net.Socket
java.net.SocketException
public void close() throws java.io.IOException
close
in interface java.io.Closeable
close
in interface java.lang.AutoCloseable
close
in class java.net.Socket
java.io.IOException
public void shutdownInput() throws java.io.IOException
shutdownInput
in class java.net.Socket
java.io.IOException
public void shutdownOutput() throws java.io.IOException
shutdownOutput
in class java.net.Socket
java.io.IOException
public java.lang.String toString()
toString
in class java.net.Socket
public boolean isConnected()
isConnected
in class java.net.Socket
public boolean isBound()
isBound
in class java.net.Socket
public boolean isClosed()
isClosed
in class java.net.Socket
public boolean isInputShutdown()
isInputShutdown
in class java.net.Socket
public boolean isOutputShutdown()
isOutputShutdown
in class java.net.Socket
public <T> java.net.Socket setOption(java.net.SocketOption<T> so, T val) throws java.io.IOException
java.io.IOException
public <T> T getOption(java.net.SocketOption<T> so) throws java.io.IOException
java.io.IOException
public java.util.Set<java.net.SocketOption<?>> supportedOptions()
public java.io.FileDescriptor getFileDescriptor$()
"Copyright © 2010 - 2020 Adobe Systems Incorporated. All Rights Reserved"