public enum UdpFlags extends Enum<UdpFlags>
UDPHandle#bind(int, String, boolean)http://docs.libuv.org/en/v1.x/udp.html#c.uv_udp_flags| Enum Constant and Description |
|---|
UV_UDP_IPV6ONLY
Disables dual stack mode.
|
UV_UDP_LINUX_RECVERR
Indicates if IP_RECVERR/IPV6_RECVERR will be set when binding the handle.
|
UV_UDP_MMSG_CHUNK
Indicates that the message was received by recvmmsg, so the buffer provided
must not be freed by the recv_cb callback.
|
UV_UDP_MMSG_FREE
Indicates that the buffer provided has been fully utilized by recvmmsg and
that it should now be freed by the recv_cb callback.
|
UV_UDP_PARTIAL
Indicates message was truncated because read buffer was too small.
|
UV_UDP_RECVMMSG
Indicates that recvmmsg should be used, if available.
|
UV_UDP_REUSEADDR
Indicates if SO_REUSEADDR will be set when binding the handle.
|
| Modifier and Type | Field and Description |
|---|---|
int |
value |
| Modifier and Type | Method and Description |
|---|---|
String |
toString() |
static UdpFlags |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static UdpFlags[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final UdpFlags UV_UDP_IPV6ONLY
public static final UdpFlags UV_UDP_PARTIAL
public static final UdpFlags UV_UDP_REUSEADDR
public static final UdpFlags UV_UDP_MMSG_CHUNK
public static final UdpFlags UV_UDP_MMSG_FREE
public static final UdpFlags UV_UDP_LINUX_RECVERR
public static final UdpFlags UV_UDP_RECVMMSG
public static UdpFlags[] values()
for (UdpFlags c : UdpFlags.values()) System.out.println(c);
public static UdpFlags valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullCopyright © 2021 WebFolder. All rights reserved.