Roc Toolkit internal modules
Roc Toolkit: real-time audio streaming
roc::netio::UdpReceiverConfig Struct Reference

UDP receiver parameters. More...

#include <udp_receiver_port.h>

Collaboration diagram for roc::netio::UdpReceiverConfig:

Public Attributes

address::SocketAddr bind_address
 Receiver will bind to this address. If IP is zero, INADDR_ANY is used, i.e. the socket is bound to all network interfaces. If port is zero, a random free port is selected. More...
 
char multicast_interface [64]
 If not empty, receiver will join multicast group on the interface with given address. May be "0.0.0.0" or "[::]" to join on all interfaces. More...
 
bool reuseaddr
 If set, enable SO_REUSEADDR when binding socket to non-ephemeral port. If not set, SO_REUSEADDR is enabled only for multicast sockets when binding to non-ephemeral port. More...
 

Detailed Description

UDP receiver parameters.

Definition at line 31 of file udp_receiver_port.h.

Member Data Documentation

◆ bind_address

address::SocketAddr roc::netio::UdpReceiverConfig::bind_address

Receiver will bind to this address. If IP is zero, INADDR_ANY is used, i.e. the socket is bound to all network interfaces. If port is zero, a random free port is selected.

Definition at line 35 of file udp_receiver_port.h.

◆ multicast_interface

char roc::netio::UdpReceiverConfig::multicast_interface[64]

If not empty, receiver will join multicast group on the interface with given address. May be "0.0.0.0" or "[::]" to join on all interfaces.

Definition at line 39 of file udp_receiver_port.h.

◆ reuseaddr

bool roc::netio::UdpReceiverConfig::reuseaddr

If set, enable SO_REUSEADDR when binding socket to non-ephemeral port. If not set, SO_REUSEADDR is enabled only for multicast sockets when binding to non-ephemeral port.

Definition at line 44 of file udp_receiver_port.h.


The documentation for this struct was generated from the following file: