waterlinkedsonar
C++ client library for the Water Linked Sonar 3D-15
Loading...
Searching...
No Matches
Public Types | Public Attributes | List of all members
waterlinked::sonar::UdpSocketConfig Struct Reference

Addressing, port and receive buffer of a UdpSocket. More...

#include <waterlinkedsonar/udp/socket.hpp>

Public Types

enum class  Mode : std::uint8_t { MULTICAST , UNICAST }
 Addressing of the received stream. More...
 

Public Attributes

Mode mode {Mode::MULTICAST}
 Multicast or unicast.
 
std::string multicast_group {MULTICAST_GROUP}
 Group joined in MULTICAST mode.
 
std::uint16_t port {MULTICAST_PORT}
 Local port. In UNICAST mode, the destination port set on the sonar.
 
std::string interface_ip {"0.0.0.0"}
 Interface that joins the group in MULTICAST mode; bind address in UNICAST mode.
 
int receive_buffer_bytes {4 << 20}
 Requested SO_RCVBUF size. The kernel caps it at net.core.rmem_max.
 

Detailed Description

Addressing, port and receive buffer of a UdpSocket.

Member Enumeration Documentation

◆ Mode

enum class waterlinked::sonar::UdpSocketConfig::Mode : std::uint8_t
strong

Addressing of the received stream.

Enumerator
MULTICAST 

Join multicast_group.

UNICAST 

Receive datagrams addressed to interface_ip.


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