public class MockSocket extends Socket
| Constructor and Description |
|---|
MockSocket() |
MockSocket(InetAddress address,
int port) |
MockSocket(InetAddress address,
int port,
InetAddress localAddr,
int localPort) |
MockSocket(Proxy proxy) |
MockSocket(String host,
int port) |
MockSocket(String host,
int port,
InetAddress localAddr,
int localPort) |
| Modifier and Type | Method and Description |
|---|---|
void |
bind(SocketAddress bindpoint) |
void |
connect(SocketAddress endpoint) |
void |
connect(SocketAddress endpoint,
int timeout) |
InetAddress |
getInetAddress() |
SocketAddress |
getLocalSocketAddress() |
close, getChannel, getInputStream, getKeepAlive, getLocalAddress, getLocalPort, getOOBInline, getOutputStream, getPort, getReceiveBufferSize, getRemoteSocketAddress, getReuseAddress, getSendBufferSize, getSoLinger, getSoTimeout, getTcpNoDelay, getTrafficClass, isBound, isClosed, isConnected, isInputShutdown, isOutputShutdown, sendUrgentData, setKeepAlive, setOOBInline, setPerformancePreferences, setReceiveBufferSize, setReuseAddress, setSendBufferSize, setSocketImplFactory, setSoLinger, setSoTimeout, setTcpNoDelay, setTrafficClass, shutdownInput, shutdownOutput, toStringpublic MockSocket()
public MockSocket(Proxy proxy)
public MockSocket(String host, int port) throws IOException
IOExceptionpublic MockSocket(InetAddress address, int port) throws IOException
IOExceptionpublic MockSocket(String host, int port, InetAddress localAddr, int localPort) throws IOException
IOExceptionpublic MockSocket(InetAddress address, int port, InetAddress localAddr, int localPort) throws IOException
IOExceptionpublic void connect(SocketAddress endpoint) throws IOException
connect in class SocketIOExceptionpublic void connect(SocketAddress endpoint, int timeout) throws IOException
connect in class SocketIOExceptionpublic void bind(SocketAddress bindpoint) throws IOException
bind in class SocketIOExceptionpublic InetAddress getInetAddress()
getInetAddress in class Socketpublic SocketAddress getLocalSocketAddress()
getLocalSocketAddress in class SocketCopyright © 2016–2017. All rights reserved.