|
llmx-rtaco 0.0.1
RTNL-only netlink control-plane library for Linux (C++23).
|
Netlink-specific endpoint wrapper for Boost.Asio. More...
#include <nl_protocol.hxx>
Public Types | |
| using | protocol_type = Protocol |
| using | data_type = boost::asio::detail::socket_addr_type |
Public Member Functions | |
| Endpoint () noexcept | |
| Default construct an Endpoint with unspecified pid/groups. | |
| Endpoint (uint32_t groups, uint32_t pid=AF_UNSPEC) noexcept | |
| Construct an Endpoint for the given multicast groups and pid. | |
| Endpoint (const Endpoint &other) noexcept=default | |
| Endpoint & | operator= (const Endpoint &other) noexcept=default |
| auto | protocol () const noexcept -> protocol_type |
| Return the protocol type instance for this endpoint. | |
| auto | data () noexcept -> data_type * |
| Get mutable pointer to raw socket address storage. | |
| auto | data () const noexcept -> const data_type * |
| Get const pointer to raw socket address storage. | |
| auto | size () const noexcept -> size_t |
| Size of this endpoint's address structure. | |
| void | resize (size_t) noexcept |
| auto | capacity () const noexcept -> size_t |
| Capacity of the address storage. | |
Private Attributes | |
| sockaddr_nl | sockaddr_ {} |
Friends | |
| bool | operator== (const Endpoint &lhs, const Endpoint &rhs) noexcept |
| bool | operator!= (const Endpoint &lhs, const Endpoint &rhs) noexcept |
| bool | operator< (const Endpoint &lhs, const Endpoint &rhs) noexcept |
| bool | operator> (const Endpoint &lhs, const Endpoint &rhs) noexcept |
| bool | operator<= (const Endpoint &lhs, const Endpoint &rhs) noexcept |
| bool | operator>= (const Endpoint &lhs, const Endpoint &rhs) noexcept |
Netlink-specific endpoint wrapper for Boost.Asio.
Encapsulates a sockaddr_nl instance and provides the interface required by Boost.Asio raw socket types (data/size/capacity, etc.).
| using llmx::rtaco::Endpoint< Protocol >::data_type = boost::asio::detail::socket_addr_type |
| using llmx::rtaco::Endpoint< Protocol >::protocol_type = Protocol |
|
inlinenoexcept |
Default construct an Endpoint with unspecified pid/groups.
|
inlinenoexcept |
Construct an Endpoint for the given multicast groups and pid.
|
defaultnoexcept |
|
inlinenoexcept |
Capacity of the address storage.
|
inlinenoexcept |
Get const pointer to raw socket address storage.
|
inlinenoexcept |
Get mutable pointer to raw socket address storage.
|
defaultnoexcept |
|
inlinenoexcept |
Return the protocol type instance for this endpoint.
|
inlinenoexcept |
|
inlinenoexcept |
Size of this endpoint's address structure.
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
private |