Roc Toolkit internal modules
Roc Toolkit: real-time audio streaming
|
UDP port parameters. More...
#include <udp_port.h>
Public Member Functions | |
bool | operator== (const UdpConfig &other) const |
Check two configs for equality. More... | |
Public Attributes | |
address::SocketAddr | bind_address |
Port 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, port will join multicast group on the interface with given address. May be "0.0.0.0" or "[::]" to join on all interfaces. Used only if receiving is started. More... | |
bool | enable_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... | |
bool | enable_non_blocking |
If true, allow non-blocking writes directly in write() method. If non-blocking write can't be performed, port falls back to regular asynchronous write. Used only if sending is started. More... | |
UDP port parameters.
Definition at line 32 of file udp_port.h.
|
inline |
Check two configs for equality.
Definition at line 61 of file udp_port.h.
address::SocketAddr roc::netio::UdpConfig::bind_address |
Port 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 36 of file udp_port.h.
bool roc::netio::UdpConfig::enable_non_blocking |
If true, allow non-blocking writes directly in write() method. If non-blocking write can't be performed, port falls back to regular asynchronous write. Used only if sending is started.
Definition at line 52 of file udp_port.h.
bool roc::netio::UdpConfig::enable_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 46 of file udp_port.h.
char roc::netio::UdpConfig::multicast_interface[64] |
If not empty, port will join multicast group on the interface with given address. May be "0.0.0.0" or "[::]" to join on all interfaces. Used only if receiving is started.
Definition at line 41 of file udp_port.h.