netlink protocol class.
More...
#include <protocol.hpp>
|
| constexpr | Netlink (int proto=NETLINK_ROUTE) noexcept |
| | construct the netlink protocol instance by default.
|
| |
| constexpr int | family () const noexcept |
| | get the protocol address family.
|
| |
| constexpr int | type () const noexcept |
| | get the protocol communication semantic.
|
| |
| constexpr int | protocol () const noexcept |
| | get the protocol type.
|
| |
|
| static Netlink & | rt () noexcept |
| | get protocol suitable for netlink route.
|
| |
| static Netlink & | nf () noexcept |
| | get protocol suitable for netlink netfilter.
|
| |
◆ Endpoint
◆ Socket
◆ Netlink()
| join::Netlink::Netlink |
( |
int | proto = NETLINK_ROUTE | ) |
|
|
inlineconstexprnoexcept |
construct the netlink protocol instance by default.
- Parameters
-
◆ family()
| int join::Netlink::family |
( |
| ) |
const |
|
inlineconstexprnoexcept |
get the protocol address family.
- Returns
- the protocol address family.
◆ nf()
| static Netlink & join::Netlink::nf |
( |
| ) |
|
|
inlinestaticnoexcept |
get protocol suitable for netlink netfilter.
- Returns
- a netlink route protocol.
◆ protocol()
| int join::Netlink::protocol |
( |
| ) |
const |
|
inlineconstexprnoexcept |
get the protocol type.
- Returns
- the protocol type.
◆ rt()
| static Netlink & join::Netlink::rt |
( |
| ) |
|
|
inlinestaticnoexcept |
get protocol suitable for netlink route.
- Returns
- a netlink route protocol.
◆ type()
| int join::Netlink::type |
( |
| ) |
const |
|
inlineconstexprnoexcept |
get the protocol communication semantic.
- Returns
- the protocol communication semantic.
The documentation for this class was generated from the following file: