|
llmx-rtaco 0.0.1
RTNL-only netlink control-plane library for Linux (C++23).
|
Protocol descriptor for netlink sockets. More...
#include <nl_protocol.hxx>
Public Types | |
| using | endpoint = Endpoint<Protocol> |
| using | socket = boost::asio::basic_raw_socket<Protocol> |
Public Member Functions | |
| Protocol ()=default | |
| Protocol (int proto) noexcept | |
| Construct a Protocol wrapper for a given netlink protocol. | |
| auto | type () const noexcept -> int |
| Socket type for this protocol (SOCK_RAW). | |
| auto | protocol () const noexcept -> int |
| Underlying protocol number used with socket(2). | |
| auto | family () const noexcept -> int |
| Address family (AF_NETLINK). | |
Private Attributes | |
| int | proto_ {0} |
Protocol descriptor for netlink sockets.
Holds the protocol number and provides typedefs and helpers used by the Boost.Asio basic_raw_socket instantiation for netlink communication.
| using llmx::rtaco::Protocol::socket = boost::asio::basic_raw_socket<Protocol> |
|
default |
|
inlineexplicitnoexcept |
Construct a Protocol wrapper for a given netlink protocol.
|
inlinenoexcept |
Address family (AF_NETLINK).
|
inlinenoexcept |
Underlying protocol number used with socket(2).
|
inlinenoexcept |
Socket type for this protocol (SOCK_RAW).
|
private |