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

netlink protocol class. More...

#include <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 Netlinkrt () noexcept
 get protocol suitable for netlink route.
 
static Netlinknf () noexcept
 get protocol suitable for netlink netfilter.
 

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.

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