boost::corosio::socket_option::multicast_hops_v4
Set the multicast TTL for IPv4 (IP_MULTICAST_TTL).
Synopsis
Declared in <boost/corosio/socket_option.hpp>
class multicast_hops_v4
: public byte_integer_option
Description
Uses single‐byte storage because BSD‐derived kernels (macOS, FreeBSD) reject the four‐byte form with EINVAL. Linux accepts either size. Values are truncated to the 0–255 range.
Base Classes
Name |
Description |
Base class for concrete integer socket options with single‐byte storage. |
Member Functions
Name |
Description |
Assign a new value; truncated to one byte. |
|
Return a pointer to the underlying storage. |
|
Storage is already one byte; no normalization needed. |
|
Return the size of the underlying storage. |
|
Return the option value. |
Using Declarations
Name |
Created with MrDocs