public final class SocketOptions extends Object
Constructor and Description |
---|
SocketOptions(InetAddress address,
int port,
boolean tcpNoDelay)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
InetAddress |
getAddress()
Returns the host.
|
int |
getPort()
Returns the port.
|
int |
hashCode() |
boolean |
isTcpNoDelay()
Returns whether to use tcp no delay or not.
|
String |
toString() |
public SocketOptions(InetAddress address, int port, boolean tcpNoDelay)
address
- host addressport
- socket porttcpNoDelay
- wether to use tcp no delay or notpublic InetAddress getAddress()
public int getPort()
public boolean isTcpNoDelay()
true
to use, else false
Copyright © 2018 CoR-Lab. All rights reserved.