| Modifier and Type | Field and Description |
|---|---|
| private boolean | |
| public static final boolean | DEFAULT_BROADCAST
The default value of broadcast for the socket = false |
| public static final boolean | DEFAULT_IPV6
The default value of use IP v6 = false |
| public static final boolean | DEFAULT_LOOPBACK_MODE_DISABLED
The default value of loopback disabled = true |
| public static final String | DEFAULT_MULTICAST_NETWORK_INTERFACE
The default value of multicast network interface = null |
| public static final int | DEFAULT_MULTICAST_TIME_TO_LIVE
The default value of multicast disabled = -1 |
| public static final boolean | DEFAULT_REUSE_ADDRESS
Hides io. |
| private boolean | |
| private boolean | |
| private String | |
| private int |
| Access | Constructor and Description |
|---|---|
| public | |
| public | |
| public | DatagramSocketOptions(JsonObject
the JSON json)
References Deprecated
JsonObject is deprecated or references (maybe indirectly) at least one deprecated element.
Constructor to create options from JSON |
| Modifier and Type | Method and Description |
|---|---|
| public String | Returns: the interface addressGet the multicast network interface address |
| public int | |
| public int | getReceiveBufferSize()
Overrides io. Return the TCP receive buffer size, in bytes |
| public int | getSendBufferSize()
Overrides io. Return the TCP send buffer size, in bytes. |
| public int | |
| private void | |
| public boolean | |
| public boolean | |
| public boolean | |
| public DatagramSocketOptions | setActivityLogDataFormat(ByteBufFormat
the format to use activityLogDataFormat)Overrides io. Set the value of Netty's logging handler's data format: Netty's pipeline is configured for logging on Netty's logger. |
| public DatagramSocketOptions | Returns: a reference to this, so the API can be used fluentlytrue if the socket can send or receive broadcast packets broadcast)Set if the socket can send or receive broadcast packets |
| public DatagramSocketOptions | Returns: a reference to this, so the API can be used fluentlytrue if IP v6 should be used ipV6)Set if IP v6 should be used |
| public DatagramSocketOptions | setLogActivity(boolean
true for logging the network activity logEnabled)Overrides io. Set to true to enabled network activity logging: Netty's pipeline is configured for logging on Netty's logger. |
| public DatagramSocketOptions | Returns: a reference to this, so the API can be used fluentlytrue if loopback mode is disabled loopbackModeDisabled)Set if loopback mode is disabled |
| public DatagramSocketOptions | Returns: a reference to this, so the API can be used fluentlythe address multicastNetworkInterface)Set the multicast network interface address |
| public DatagramSocketOptions | Returns: a reference to this, so the API can be used fluentlythe multicast ttl value multicastTimeToLive)Set the multicast ttl value |
| public DatagramSocketOptions | setReceiveBufferSize(int
the buffers size, in bytes receiveBufferSize)Overrides io. Set the TCP receive buffer size |
| public DatagramSocketOptions | setReuseAddress(boolean
the value of reuse address reuseAddress)Overrides io. Set the value of reuse address |
| public DatagramSocketOptions | setReusePort(boolean
the value of reuse port reusePort)Overrides io. Set the value of reuse port. |
| public DatagramSocketOptions | setSendBufferSize(int
the buffers size, in bytes sendBufferSize)Overrides io. Set the TCP send buffer size |
| public DatagramSocketOptions | setTrafficClass(int
the value of traffic class trafficClass)Overrides io. Set the value of traffic class |
| broadcast | back to summary |
|---|---|
| private boolean broadcast | |
| DEFAULT_BROADCAST | back to summary |
|---|---|
| public static final boolean DEFAULT_BROADCAST The default value of broadcast for the socket = false | |
| DEFAULT_IPV6 | back to summary |
|---|---|
| public static final boolean DEFAULT_IPV6 The default value of use IP v6 = false | |
| DEFAULT_LOOPBACK_MODE_DISABLED | back to summary |
|---|---|
| public static final boolean DEFAULT_LOOPBACK_MODE_DISABLED The default value of loopback disabled = true | |
| DEFAULT_MULTICAST_NETWORK_INTERFACE | back to summary |
|---|---|
| public static final String DEFAULT_MULTICAST_NETWORK_INTERFACE The default value of multicast network interface = null | |
| DEFAULT_MULTICAST_TIME_TO_LIVE | back to summary |
|---|---|
| public static final int DEFAULT_MULTICAST_TIME_TO_LIVE The default value of multicast disabled = -1 | |
| DEFAULT_REUSE_ADDRESS | back to summary |
|---|---|
| public static final boolean DEFAULT_REUSE_ADDRESS Hides io. The default value of reuse address = false | |
| ipV6 | back to summary |
|---|---|
| private boolean ipV6 | |
| loopbackModeDisabled | back to summary |
|---|---|
| private boolean loopbackModeDisabled | |
| multicastNetworkInterface | back to summary |
|---|---|
| private String multicastNetworkInterface | |
| multicastTimeToLive | back to summary |
|---|---|
| private int multicastTimeToLive | |
| DatagramSocketOptions | back to summary |
|---|---|
| public DatagramSocketOptions() Default constructor | |
| DatagramSocketOptions | back to summary |
|---|---|
| public DatagramSocketOptions(DatagramSocketOptions other) Copy constructor
| |
| DatagramSocketOptions | back to summary |
|---|---|
| public DatagramSocketOptions(JsonObject json)
References Deprecated
See corresponding docs for further information. Constructor to create options from JSON
| |
| getMulticastNetworkInterface | back to summary |
|---|---|
| public String getMulticastNetworkInterface() Get the multicast network interface address
| |
| getMulticastTimeToLive | back to summary |
|---|---|
public int getMulticastTimeToLive()
| |
| getReceiveBufferSize | back to summary |
|---|---|
| public int getReceiveBufferSize() Overrides io. Doc from io. Return the TCP receive buffer size, in bytes
| |
| getSendBufferSize | back to summary |
|---|---|
| public int getSendBufferSize() Overrides io. Doc from io. Return the TCP send buffer size, in bytes.
| |
| getTrafficClass | back to summary |
|---|---|
| public int getTrafficClass() Overrides io.
| |
| init | back to summary |
|---|---|
| private void init() | |
| isBroadcast | back to summary |
|---|---|
public boolean isBroadcast()
| |
| isIpV6 | back to summary |
|---|---|
public boolean isIpV6()
| |
| isLoopbackModeDisabled | back to summary |
|---|---|
public boolean isLoopbackModeDisabled()
| |
| setActivityLogDataFormat | back to summary |
|---|---|
| public DatagramSocketOptions setActivityLogDataFormat(ByteBufFormat activityLogDataFormat) Overrides io. Doc from io. Set the value of Netty's logging handler's data format: Netty's pipeline is configured for logging on Netty's logger.
| |
| setBroadcast | back to summary |
|---|---|
| public DatagramSocketOptions setBroadcast(boolean broadcast) Set if the socket can send or receive broadcast packets
| |
| setIpV6 | back to summary |
|---|---|
| public DatagramSocketOptions setIpV6(boolean ipV6) Set if IP v6 should be used
| |
| setLogActivity | back to summary |
|---|---|
| public DatagramSocketOptions setLogActivity(boolean logEnabled) Overrides io. Doc from io. Set to true to enabled network activity logging: Netty's pipeline is configured for logging on Netty's logger.
| |
| setLoopbackModeDisabled | back to summary |
|---|---|
| public DatagramSocketOptions setLoopbackModeDisabled(boolean loopbackModeDisabled) Set if loopback mode is disabled
| |
| setMulticastNetworkInterface | back to summary |
|---|---|
| public DatagramSocketOptions setMulticastNetworkInterface(String multicastNetworkInterface) Set the multicast network interface address
| |
| setMulticastTimeToLive | back to summary |
|---|---|
| public DatagramSocketOptions setMulticastTimeToLive(int multicastTimeToLive) Set the multicast ttl value
| |
| setReceiveBufferSize | back to summary |
|---|---|
| public DatagramSocketOptions setReceiveBufferSize(int receiveBufferSize) Overrides io. Doc from io. Set the TCP receive buffer size
| |
| setReuseAddress | back to summary |
|---|---|
| public DatagramSocketOptions setReuseAddress(boolean reuseAddress) Overrides io. Doc from io. Set the value of reuse address
| |
| setReusePort | back to summary |
|---|---|
| public DatagramSocketOptions setReusePort(boolean reusePort) Overrides io. Doc from io. Set the value of reuse port. This is only supported by native transports.
| |
| setSendBufferSize | back to summary |
|---|---|
| public DatagramSocketOptions setSendBufferSize(int sendBufferSize) Overrides io. Doc from io. Set the TCP send buffer size
| |
| setTrafficClass | back to summary |
|---|---|
| public DatagramSocketOptions setTrafficClass(int trafficClass) Overrides io. Doc from io. Set the value of traffic class
| |