join 1.0
lightweight network framework library
Loading...
Searching...
No Matches
join::Netlink Class Reference

netlink protocol class. More...

#include <netlink_protocol.hpp>

Public Types

using Endpoint = BasicNetlinkEndpoint<Netlink>
 
using Socket = BasicDatagramSocket<Netlink>
 

Public Member Functions

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 Public Member Functions

static Netlink & rt () noexcept
 get protocol suitable for netlink route.
 
static Netlink & nf () noexcept
 get protocol suitable for netlink netfilter.
 

Static Public Attributes

static constexpr size_t maxMsgSize = 16384
 maximum netlink message size.
 

Detailed Description

netlink protocol class.

Member Typedef Documentation

◆ Endpoint

◆ Socket

Constructor & Destructor Documentation

◆ Netlink()

join::Netlink::Netlink ( int proto = NETLINK_ROUTE)
inlineconstexprnoexcept

construct the netlink protocol instance by default.

Parameters
protoprotocol type.

Member Function Documentation

◆ 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.

Member Data Documentation

◆ maxMsgSize

size_t join::Netlink::maxMsgSize = 16384
staticconstexpr

maximum netlink message size.


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