|
join 1.0
lightweight network framework library
|
basic netlink endpoint class. More...
#include <endpoint.hpp>


Public Member Functions | |
| constexpr | BasicNetlinkEndpoint () noexcept |
| default constructor. | |
| BasicNetlinkEndpoint (const struct sockaddr *addr, socklen_t len) noexcept | |
| create instance using socket address. | |
| BasicNetlinkEndpoint (const Protocol &protocol, uint32_t pid, uint32_t groups) noexcept | |
| create instance using netlink groups. | |
| BasicNetlinkEndpoint (uint32_t pid, uint32_t groups) noexcept | |
| create instance using netlink groups. | |
| BasicNetlinkEndpoint (const Protocol &protocol, uint32_t groups) noexcept | |
| create instance using netlink groups. | |
| BasicNetlinkEndpoint (uint32_t groups) noexcept | |
| create instance using netlink groups. | |
| Protocol | protocol () const noexcept |
| get endpoint protocol. | |
| constexpr socklen_t | length () const noexcept |
| get socket address length. | |
| void | pid (uint32_t pid) noexcept |
| set process id. | |
| uint32_t | pid () const noexcept |
| get process id. | |
| void | groups (uint32_t groups) noexcept |
| set netlink groups. | |
| uint32_t | groups () const noexcept |
| get netlink groups. | |
| std::string | device () const |
| get device name (not applicable for netlink). | |
Public Member Functions inherited from join::BasicEndpoint< Protocol > | |
| constexpr | BasicEndpoint () noexcept |
| default constructor. | |
| BasicEndpoint (const struct sockaddr *addr, socklen_t len) noexcept | |
| create instance using socket address. | |
| struct sockaddr * | addr () noexcept |
| get socket address. | |
| const struct sockaddr * | addr () const noexcept |
| get socket address. | |
Protected Attributes | |
| int | _protocol |
| netlink protocol type. | |
Protected Attributes inherited from join::BasicEndpoint< Protocol > | |
| struct sockaddr_storage | _addr = {} |
| socket address storage. | |
basic netlink endpoint class.
|
inlineconstexprnoexcept |
default constructor.
|
inlinenoexcept |
create instance using socket address.
| addr | socket address. |
| len | socket address length. |
|
inlinenoexcept |
create instance using netlink groups.
| protocol | netlink protocol. |
| pid | process id. |
| groups | netlink groups to set. |
|
inlinenoexcept |
create instance using netlink groups.
| pid | process id. |
| groups | netlink groups to set. |
|
inlinenoexcept |
create instance using netlink groups.
| protocol | netlink protocol. |
| groups | netlink groups to set. |
|
inlinenoexcept |
create instance using netlink groups.
| groups | netlink groups to set. |
|
inline |
get device name (not applicable for netlink).
|
inlinenoexcept |
get netlink groups.
|
inlinenoexcept |
set netlink groups.
| groups | netlink groups bitmask. |
|
inlineconstexprnoexcept |
get socket address length.
|
inlinenoexcept |
get process id.
|
inlinenoexcept |
set process id.
| pid | process id. |
|
inlinenoexcept |
get endpoint protocol.
|
protected |
netlink protocol type.