public class SocketConnector extends Object
| Constructor and Description |
|---|
SocketConnector(String host,
int port) |
| Modifier and Type | Method and Description |
|---|---|
Socket |
connect() |
int |
getConnectTimeoutInMs() |
int |
getReadTimeoutInMs() |
boolean |
isTcpNoDelay() |
void |
setConnectTimeoutInMs(int connectTimeoutInMs) |
void |
setReadTimeoutInMs(int readTimeoutInMs) |
void |
setTcpNoDelay(boolean tcpNoDelay) |
public SocketConnector(String host, int port)
public boolean isTcpNoDelay()
public void setTcpNoDelay(boolean tcpNoDelay)
public int getReadTimeoutInMs()
public void setReadTimeoutInMs(int readTimeoutInMs)
public void setConnectTimeoutInMs(int connectTimeoutInMs)
public int getConnectTimeoutInMs()
public Socket connect() throws IOException
IOExceptionCopyright © 2016. All Rights Reserved.