pub struct UdpConfig {
pub domain_id: u32,
pub participant_id: Option<u32>,
pub max_participant_id: u32,
pub ports: PortMapping,
pub interfaces: Vec<Ipv4Addr>,
pub multicast_address: Ipv4Addr,
pub multicast_ttl: u32,
pub multicast_loopback: bool,
pub receive_buffer_size: Option<usize>,
pub send_buffer_size: Option<usize>,
}Expand description
Settings of a UdpTransport.
Fields§
§domain_id: u32The DDS domain id.
participant_id: Option<u32>The participant id. None picks the lowest id, starting at 0,
whose unicast ports are free (9.6.2.1).
max_participant_id: u32The highest participant id tried when participant_id is None.
ports: PortMappingThe port number parameters.
interfaces: Vec<Ipv4Addr>The interfaces to use, by their IPv4 address. Empty means the system’s choice: multicast is joined on the default interface and the unicast locators use the address of the default route.
multicast_address: Ipv4AddrThe multicast group.
multicast_ttl: u32The time-to-live of multicast datagrams sent.
multicast_loopback: boolWhether multicast datagrams sent are also delivered to this host, so that participants on the same host find each other.
receive_buffer_size: Option<usize>The receive buffer to ask for on each socket that receives
(SO_RCVBUF; the system may give less). A large sample comes as
a burst of datagrams, which a small buffer drops. None keeps
the system’s default.
send_buffer_size: Option<usize>The send buffer to ask for on each socket (SO_SNDBUF). On macOS
it also bounds the largest datagram a socket can send, 9216
octets by default, so it must be at least the largest message
sent (up to 64 KiB, see rustorb_rtps::frag). None keeps the
system’s default.