public class SocketOptions
Socket options builder
| Modifier and Type | Class and Description |
|---|---|
static class |
SocketOptions.AcceptorOptions
TCP server socket options
|
static class |
SocketOptions.Companion |
static class |
SocketOptions.PeerSocketOptions
Represents TCP client or UDP socket options
|
static class |
SocketOptions.TCPClientSocketOptions
Represents TCP client socket options
|
static class |
SocketOptions.UDPSocketOptions
Represents UDP socket options
|
| Modifier and Type | Field and Description |
|---|---|
static SocketOptions.Companion |
Companion |
| Modifier and Type | Method and Description |
|---|---|
void |
copyCommon(SocketOptions from) |
java.util.Map<java.lang.Object,java.lang.Object> |
getCustomOptions() |
boolean |
getReuseAddress()
SO_REUSEADDR option
|
boolean |
getReusePort()
SO_REUSEPORT option, may not work with old JDK (will be silently ignored)
|
NonExistentClass |
getTypeOfService()
ToS value,
TypeOfService.Companion.getUNDEFINED by default, may not work with old JDK (will be silently ignored) |
void |
setReuseAddress(boolean p)
SO_REUSEADDR option
|
void |
setReusePort(boolean p)
SO_REUSEPORT option, may not work with old JDK (will be silently ignored)
|
void |
setTypeOfService(NonExistentClass p)
ToS value,
TypeOfService.Companion.getUNDEFINED by default, may not work with old JDK (will be silently ignored) |
public static SocketOptions.Companion Companion
public void copyCommon(SocketOptions from)
public NonExistentClass getTypeOfService()
ToS value, TypeOfService.Companion.getUNDEFINED by default, may not work with old JDK (will be silently ignored)
TypeOfService.Companion.getUNDEFINEDpublic void setTypeOfService(NonExistentClass p)
ToS value, TypeOfService.Companion.getUNDEFINED by default, may not work with old JDK (will be silently ignored)
TypeOfService.Companion.getUNDEFINEDpublic boolean getReuseAddress()
SO_REUSEADDR option
public void setReuseAddress(boolean p)
SO_REUSEADDR option
public boolean getReusePort()
SO_REUSEPORT option, may not work with old JDK (will be silently ignored)
public void setReusePort(boolean p)
SO_REUSEPORT option, may not work with old JDK (will be silently ignored)
public java.util.Map<java.lang.Object,java.lang.Object> getCustomOptions()