public static class SocketOptions.TCPClientSocketOptions
extends PeerSocketOptions
Represents TCP client socket options
SocketOptions.AcceptorOptions, SocketOptions.Companion, SocketOptions.PeerSocketOptions, SocketOptions.TCPClientSocketOptions, SocketOptions.UDPSocketOptionsCompanion| Modifier and Type | Method and Description |
|---|---|
SocketOptions.TCPClientSocketOptions |
copy$module()
Copy options
|
void |
copyCommon(SocketOptions from) |
java.lang.Boolean |
getKeepAlive()
SO_KEEPALIVE option is to enable/disable TCP keep-alive
|
int |
getLingerSeconds()
SO_LINGER option applied at socket close, not recommended to set to 0 however useful for debugging
Value of
-1 is the default and means that it is not set and system-dependant |
boolean |
getNoDelay()
TCP_NODELAY socket option, useful to disable Nagle
|
void |
setKeepAlive(java.lang.Boolean p)
SO_KEEPALIVE option is to enable/disable TCP keep-alive
|
void |
setLingerSeconds(int p)
SO_LINGER option applied at socket close, not recommended to set to 0 however useful for debugging
Value of
-1 is the default and means that it is not set and system-dependant |
void |
setNoDelay(boolean p)
TCP_NODELAY socket option, useful to disable Nagle
|
copy$module, copyCommon, getReceiveBufferSize, getSendBufferSize, setReceiveBufferSize, setSendBufferSizecopyCommon, getCustomOptions, getReuseAddress, getReusePort, getTypeOfService, setReuseAddress, setReusePort, setTypeOfServicepublic boolean getNoDelay()
TCP_NODELAY socket option, useful to disable Nagle
public void setNoDelay(boolean p)
TCP_NODELAY socket option, useful to disable Nagle
public int getLingerSeconds()
SO_LINGER option applied at socket close, not recommended to set to 0 however useful for debugging
Value of -1 is the default and means that it is not set and system-dependant
public void setLingerSeconds(int p)
SO_LINGER option applied at socket close, not recommended to set to 0 however useful for debugging
Value of -1 is the default and means that it is not set and system-dependant
public java.lang.Boolean getKeepAlive()
SO_KEEPALIVE option is to enable/disable TCP keep-alive
public void setKeepAlive(java.lang.Boolean p)
SO_KEEPALIVE option is to enable/disable TCP keep-alive
public void copyCommon(SocketOptions from)
public SocketOptions.TCPClientSocketOptions copy$module()
Copy options