Skip to content

TransportOption

TransportOption {
iface,
send_buffer_bytes,
sync_on_open,
heartbeat_interval,
..Default::default()
};
Field Type Default Description
iface Interface Auto Destination
send_buffer_bytes Option<NonZeroUsize> 8192 Size of the socket send buffer [B]. None leaves the OS default
sync_on_open bool true When false, open does not wait for the devices to synchronize with one another
heartbeat_interval Option<Duration> None When set, keep sending liveness checks at this interval (see Failsafe)

Changing anything other than iface and heartbeat_interval is generally not recommended.

Interface::Auto;
Interface::Name("eth0".to_string());
Interface::Addr("[::1]:44336".parse()?);
Value Destination
Auto The first network interface on which devices reply
Name(..) The real devices connected to the network interface with the given name
Addr(..) The given IPv6 address and port. Connect to the Simulator with [::1]:44336