Expand description
The UDPv4 transport and the default port numbers (DDSI-RTPS 2.5, 8.5.3.4, 9.5 and 9.6.2).
One RTPS message is the payload of one UDP datagram (9.5). A
UdpTransport opens the four sockets a participant needs (discovery
and user traffic, each unicast and multicast), receives on them with
one thread per socket, and hands the datagrams over a channel. It does
not depend on an async runtime.
Structs§
- Datagram
- One received datagram: one RTPS message.
- Incoming
- The receiving end of a
UdpTransport. - Port
Mapping - The tunable parameters of the port number expressions
(9.6.2.3).
Defaultgives the values required for out-of-the-box interoperability. - Sink
- Where the receive threads put what they receive: on the queue of
Incoming, or, for user traffic and with aUserHandler, to that handler on the receiving thread, which saves a hand-over between threads for each message (rustorb-dds#111). - UdpConfig
- Settings of a
UdpTransport. - UdpTransport
- The UDPv4 sockets of one participant.
Enums§
- Channel
- Which socket a datagram came in on.
Constants§
- DEFAULT_
MULTICAST_ ADDRESS - The multicast address every participant announces on and listens to (9.6.2.4.1).
- INCOMING_
CAPACITY - The most datagrams received and not yet taken from
Incoming. When it is full, the receive threads wait, the sockets’ buffers fill and the kernel drops what does not fit, as when a receiver is slower than its senders: best-effort loses it, reliable repairs it. Without a bound, a fast sender made the receiver’s memory grow without end (rustorb-dds#110). 1024 datagrams are at most 64 MiB.
Functions§
- select_
unicast - The unicast locators of a remote endpoint to send its messages to, of all it gives, so that each message reaches it once (rustorb-dds#108: RustDDS gives 127.0.0.1 besides its interface addresses, and a copy sent to each wastes the bandwidth and confused its reassembly).
Type Aliases§
- User
Handler - Handles a datagram of user traffic on the thread that received it,
or gives it back to be queued on
Incominglike the others.