Module: dds.transport

class dds.transport.TcpTransportConfig

Bases: object

participant_index

short int – value of -1 means auto detect; else force (may fail if another participant is using the port[s]) (can’t exceed 120)

interfaces

CoreDX_IpTransportInterfaceSeq – default: empty -> use all available interfaces

dynamic_interfaces

bool – detect and handle changes to interface addresses

add_checksum

bool – add checksum to TX packets (default: True)

use_checksum

bool – use (test) checksum on RX packets if present (default: True)

require_checksum

bool – < if ‘use_checksum’, then _require_ checksum on RX packets (default: True)

tx_max_packet_size

integer – default: 1200

reconnect_delay

dds.core.Duration – interval between reconnect attempts (default: 5.0 sec)

debug_flags

integer – adjust the debug output of the transport

class dds.transport.UdpTransportConfig

Bases: object

Configures the behavior of the UDP Transport.

participant_index

integer – value of -1 means “auto detect”; else force (may fail if another participant is using the ports (can’t exceed 120)

use_ipv4

bool – Support IPv4 communications (default True)

use_ipv6

bool – Support IPv4 communications (default False)

interfaces

list of IP addresses – Specify interfaces by ‘address’; default: empty

interface_names

list of strings – Specify interfaces by ‘name’; default: empty. Used only if ‘interfaces’ (above) is empty.

dynamic_interfaces

bool – detect and handle changes to interface addresses

rx_init_buffer_size

integer – initial size of data buffer

rx_max_buffer_size

integer – maximum size of data buffer

tx_max_packet_size

integer – default: 64K (udp limit)

so_rcvbuf

integer – socket RCVBUF size (set to -1 to use OS default)

so_sndbuf

integer – socket SNDBUF size (set to -1 to use OS default)

meta_multicast_address_v4[4]

array of int – default: [ 239 255 0 1 ] per the standard

user_multicast_address_v4[4]

array of int – default: [ 239 255 0 1 ] per the standard

meta_multicast_address_v6[16]

array of int – default: [ ff 03 00 00 00 00 00 00 00 00 ef ff 00 01 ]

user_multicast_address_v6[16]

array of int – default: [ ff 03 00 00 00 00 00 00 00 00 ef ff 00 01 ]

multicast_ttl

integer – default: 1 (0: disable all MCAST TX)

tx_meta_multicast

bool – enable META MULTICAST (discovery) TX

tx_meta_unicast

bool – enable META UNICAST (discovery) TX

rx_meta_multicast

bool – enable META MULTICAST (discovery) RX

rx_user_multicast

bool – enable USER MULTICAST (data) RX

advertise_meta_multicast

bool – advertise we can RX META MULTICAST

advertise_user_multicast

bool – advertise we can RX USER MULTICAST

try_to_keep_mcast_local

bool – when possible (inferred by discovered peers), send multicast transmissions to only the localhost interface [enabled by default]

broadcast_address[4]

array of int – default: [ 255 255 255 255 ]

do_meta_broadcast

bool – enable broadcast of META (DPD discovery) data (default: False)

debug_flags

integer – adjust the debug output from the transport