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

UDP sender parameters. More...

#include <udp_sender_port.h>

Collaboration diagram for roc::netio::UdpSenderConfig:

Public Member Functions

bool operator== (const UdpSenderConfig &other) const
 Check two configs for equality. More...
 

Public Attributes

address::SocketAddr bind_address
 Sender 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...
 
bool reuseaddr
 If set, enable SO_REUSEADDR when binding socket to non-ephemeral port. If not set, SO_REUSEADDR is not enabled. More...
 
bool non_blocking_enabled
 If true, allow non-blocking writes directly in write() method. If non-blocking write can't be performed, sender falls back to regular asynchronous write. More...
 

Detailed Description

UDP sender parameters.

Definition at line 30 of file udp_sender_port.h.

Member Function Documentation

◆ operator==()

bool roc::netio::UdpSenderConfig::operator== ( const UdpSenderConfig other) const
inline

Check two configs for equality.

Definition at line 51 of file udp_sender_port.h.

Member Data Documentation

◆ bind_address

address::SocketAddr roc::netio::UdpSenderConfig::bind_address

Sender 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 34 of file udp_sender_port.h.

◆ non_blocking_enabled

bool roc::netio::UdpSenderConfig::non_blocking_enabled

If true, allow non-blocking writes directly in write() method. If non-blocking write can't be performed, sender falls back to regular asynchronous write.

Definition at line 43 of file udp_sender_port.h.

◆ reuseaddr

bool roc::netio::UdpSenderConfig::reuseaddr

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

Definition at line 38 of file udp_sender_port.h.


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