FastMM documentation
FastMM C++ API 0.6.0
Public headers, tier 1 and tier 2
Loading...
Searching...
No Matches
fastmm::net::KernelSourceOpen Struct Reference

Outcome of open(). err is 0 or -errno of the step that failed, for subscription line. More...

#include <fastmm/net/kernel_datagram_source.hpp>

Public Member Functions

bool ok () const noexcept
 
bool busy_poll_applied () const noexcept
 

Public Attributes

int err = 0
 
std::size_t line = 0
 
std::string_view step
 "config", "interface", "group", "source", "socket", "bind", ...
 
int busy_poll = 0
 Busy-poll options: 0 when applied to every socket, else the first -errno (-EPERM without CAP_NET_ADMIN).
 
int prefer_busy_poll = 0
 
int busy_poll_budget = 0
 
int rcvbuf = 0
 SO_RCVBUF granted on line 0, as getsockopt reports it.
 

Detailed Description

Outcome of open(). err is 0 or -errno of the step that failed, for subscription line.

Member Function Documentation

◆ ok()

bool fastmm::net::KernelSourceOpen::ok ( ) const
inlinenoexcept

◆ busy_poll_applied()

bool fastmm::net::KernelSourceOpen::busy_poll_applied ( ) const
inlinenoexcept

Member Data Documentation

◆ err

int fastmm::net::KernelSourceOpen::err = 0

◆ line

std::size_t fastmm::net::KernelSourceOpen::line = 0

◆ step

std::string_view fastmm::net::KernelSourceOpen::step

"config", "interface", "group", "source", "socket", "bind", ...

◆ busy_poll

int fastmm::net::KernelSourceOpen::busy_poll = 0

Busy-poll options: 0 when applied to every socket, else the first -errno (-EPERM without CAP_NET_ADMIN).

Only set when busy_poll was requested.

◆ prefer_busy_poll

int fastmm::net::KernelSourceOpen::prefer_busy_poll = 0

◆ busy_poll_budget

int fastmm::net::KernelSourceOpen::busy_poll_budget = 0

◆ rcvbuf

int fastmm::net::KernelSourceOpen::rcvbuf = 0

SO_RCVBUF granted on line 0, as getsockopt reports it.