public class WriteTimeoutSocket extends Socket
| 构造器和说明 |
|---|
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 在类中 SocketIOExceptionpublic void connect(SocketAddress remote, int timeout) throws IOException
connect 在类中 SocketIOExceptionpublic void bind(SocketAddress local) throws IOException
bind 在类中 SocketIOExceptionpublic SocketAddress getRemoteSocketAddress()
getRemoteSocketAddress 在类中 Socketpublic SocketAddress getLocalSocketAddress()
getLocalSocketAddress 在类中 Socketpublic void setPerformancePreferences(int connectionTime,
int latency,
int bandwidth)
setPerformancePreferences 在类中 Socketpublic SocketChannel getChannel()
getChannel 在类中 Socketpublic InetAddress getInetAddress()
getInetAddress 在类中 Socketpublic InetAddress getLocalAddress()
getLocalAddress 在类中 Socketpublic int getLocalPort()
getLocalPort 在类中 Socketpublic InputStream getInputStream() throws IOException
getInputStream 在类中 SocketIOExceptionpublic OutputStream getOutputStream() throws IOException
getOutputStream 在类中 SocketIOExceptionpublic void setTcpNoDelay(boolean on)
throws SocketException
setTcpNoDelay 在类中 SocketSocketExceptionpublic boolean getTcpNoDelay()
throws SocketException
getTcpNoDelay 在类中 SocketSocketExceptionpublic void setSoLinger(boolean on,
int linger)
throws SocketException
setSoLinger 在类中 SocketSocketExceptionpublic int getSoLinger()
throws SocketException
getSoLinger 在类中 SocketSocketExceptionpublic void sendUrgentData(int data)
throws IOException
sendUrgentData 在类中 SocketIOExceptionpublic void setOOBInline(boolean on)
throws SocketException
setOOBInline 在类中 SocketSocketExceptionpublic boolean getOOBInline()
throws SocketException
getOOBInline 在类中 SocketSocketExceptionpublic void setSoTimeout(int timeout)
throws SocketException
setSoTimeout 在类中 SocketSocketExceptionpublic int getSoTimeout()
throws SocketException
getSoTimeout 在类中 SocketSocketExceptionpublic void setSendBufferSize(int size)
throws SocketException
setSendBufferSize 在类中 SocketSocketExceptionpublic int getSendBufferSize()
throws SocketException
getSendBufferSize 在类中 SocketSocketExceptionpublic void setReceiveBufferSize(int size)
throws SocketException
setReceiveBufferSize 在类中 SocketSocketExceptionpublic int getReceiveBufferSize()
throws SocketException
getReceiveBufferSize 在类中 SocketSocketExceptionpublic void setKeepAlive(boolean on)
throws SocketException
setKeepAlive 在类中 SocketSocketExceptionpublic boolean getKeepAlive()
throws SocketException
getKeepAlive 在类中 SocketSocketExceptionpublic void setTrafficClass(int tc)
throws SocketException
setTrafficClass 在类中 SocketSocketExceptionpublic int getTrafficClass()
throws SocketException
getTrafficClass 在类中 SocketSocketExceptionpublic void setReuseAddress(boolean on)
throws SocketException
setReuseAddress 在类中 SocketSocketExceptionpublic boolean getReuseAddress()
throws SocketException
getReuseAddress 在类中 SocketSocketExceptionpublic void close()
throws IOException
close 在接口中 Closeableclose 在接口中 AutoCloseableclose 在类中 SocketIOExceptionpublic void shutdownInput()
throws IOException
shutdownInput 在类中 SocketIOExceptionpublic void shutdownOutput()
throws IOException
shutdownOutput 在类中 SocketIOExceptionpublic boolean isConnected()
isConnected 在类中 Socketpublic boolean isInputShutdown()
isInputShutdown 在类中 Socketpublic boolean isOutputShutdown()
isOutputShutdown 在类中 Socketpublic <T> Socket setOption(SocketOption<T> so, T val) throws IOException
IOExceptionpublic <T> T getOption(SocketOption<T> so) throws IOException
IOExceptionpublic Set<SocketOption<?>> supportedOptions()
public FileDescriptor getFileDescriptor$()
Copyright © 2021 Oracle. All rights reserved.