livox_mid360_core
C++ driver library for the Livox Mid-360 LiDAR
Loading...
Searching...
No Matches
livox::mid360::SocketOptions Struct Reference

Options of UdpSocket::open(). More...

#include <livox/mid360/transport.hpp>

Public Attributes

bool reuse_address = true
 SO_REUSEADDR, applied only when binding to an explicit port: an ephemeral port (port 0) is always exclusive, so that the kernel cannot hand out one that is in use.
bool broadcast = false
 SO_BROADCAST, needed to send to 255.255.255.255.
std::size_t recv_buffer_bytes = 0
 Requested SO_RCVBUF in bytes; 0 leaves the OS default untouched.
std::optional< std::array< std::uint8_t, 4 > > multicast_group
 Reserved (#2 design): not implemented, must stay at default.
std::string bind_to_device
 reserved, see multicast_group

Detailed Description

Options of UdpSocket::open().

Member Data Documentation

◆ recv_buffer_bytes

std::size_t livox::mid360::SocketOptions::recv_buffer_bytes = 0

Requested SO_RCVBUF in bytes; 0 leaves the OS default untouched.

The kernel may clamp the value; see UdpSocket::recv_buffer_bytes().

◆ multicast_group

std::optional<std::array<std::uint8_t, 4> > livox::mid360::SocketOptions::multicast_group

Reserved (#2 design): not implemented, must stay at default.

Multicast reception is not a v1 goal (#112); bind_to_device is reserved in the same way.


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