From edd3b6bc34f211bd3d58642d0c69ce1b5bb9dc3b Mon Sep 17 00:00:00 2001
From: gdamore
udp://:9999When using an nng_sockaddr structure,
+
When using an nng_sockaddr structure,
the actual structure is either of type
-nng_sockaddr_in (for IPv4) or
-nng_sockaddr_in6 (for IPv6).
nng_sockaddr_in (for IPv4) or
+nng_sockaddr_in6 (for IPv6).
The following transport options are supported by this transport, where supported by the underlying platform.
| Option | Type | Description |
|---|---|---|
NNG_OPT_LOCADDR | nng_sockaddr | The locally bound address, will be either nng_sockaddr_in or nng_sockaddr_in6. |
NNG_OPT_REMADDR | nng_sockaddr | The remote peer address, will be either nng_sockaddr_in or nng_sockaddr_in6. Only valid for pipe and dialer objects. |
NNG_OPT_RECVMAXSZ | size_t | Maximum size of incoming messages, will be limited to at most 65000. |
NNG_OPT_LOCADDR | nng_sockaddr | The locally bound address, will be either nng_sockaddr_in or nng_sockaddr_in6. |
NNG_OPT_REMADDR | nng_sockaddr | The remote peer address, will be either nng_sockaddr_in or nng_sockaddr_in6. Only valid for pipe and dialer objects. |
NNG_OPT_RECVMAXSZ | size_t | Maximum size of incoming messages, will be limited to at most 65000. |
NNG_OPT_UDP_COPY_MAX | size_t | Threshold above which received messages are “loaned” up, rather than a new message being allocated and copied into. |
NNG_OPT_UDP_BOUND_PORT | int | The locally bound UDP port number (1-65535), read-only for listener objects only. |
NNG_OPT_UDP_BOUND_PORT | int | The locally bound UDP port number (1-65535), read-only for listener objects only. |
The maximum message size is negotiated as part of establishing a peering relationship, and oversize messages will be dropped by the sender before going to the network.
-The maximum message size to receive can be configured with the NNG_OPT_RECVMAXSZ option.
The maximum message size to receive can be configured with the NNG_OPT_RECVMAXSZ option.
This transports maintains a logical “connection” with each peer, to provide a rough facsimile of a connection based semantic. This requires some resource on each peer. -- cgit v1.2.3-70-g09d2