Toolbox snapshot
The Reactive C++ Toolbox
Loading...
Searching...
No Matches
Public Member Functions | Static Public Member Functions | Friends | List of all members
toolbox::net::DgramProtocol Struct Reference

#include <toolbox/net/Protocol.hpp>

Public Member Functions

constexpr DgramProtocol (int family=AF_UNSPEC, int protocol=0) noexcept
 
constexpr int family () const noexcept
 
constexpr int type () const noexcept
 
constexpr int protocol () const noexcept
 

Static Public Member Functions

static constexpr auto ip4 () noexcept
 
static constexpr auto ip6 () noexcept
 
static constexpr auto udp4 () noexcept
 
static constexpr auto udp6 () noexcept
 
static constexpr auto unix () noexcept
 
static constexpr auto unspec () noexcept
 

Friends

bool operator== (DgramProtocol lhs, DgramProtocol rhs)
 
bool operator!= (DgramProtocol lhs, DgramProtocol rhs)
 

Detailed Description

Definition at line 25 of file Protocol.hpp.

Constructor & Destructor Documentation

◆ DgramProtocol()

constexpr toolbox::net::DgramProtocol::DgramProtocol ( int  family = AF_UNSPEC,
int  protocol = 0 
)
inlineexplicitconstexprnoexcept

Definition at line 32 of file Protocol.hpp.

Member Function Documentation

◆ ip4()

static constexpr auto toolbox::net::DgramProtocol::ip4 ( )
inlinestaticconstexprnoexcept

Definition at line 37 of file Protocol.hpp.

◆ ip6()

static constexpr auto toolbox::net::DgramProtocol::ip6 ( )
inlinestaticconstexprnoexcept

Definition at line 38 of file Protocol.hpp.

◆ udp4()

static constexpr auto toolbox::net::DgramProtocol::udp4 ( )
inlinestaticconstexprnoexcept

Definition at line 39 of file Protocol.hpp.

◆ udp6()

static constexpr auto toolbox::net::DgramProtocol::udp6 ( )
inlinestaticconstexprnoexcept

Definition at line 40 of file Protocol.hpp.

◆ unix()

static constexpr auto toolbox::net::DgramProtocol::unix ( )
inlinestaticconstexprnoexcept

Definition at line 41 of file Protocol.hpp.

◆ unspec()

static constexpr auto toolbox::net::DgramProtocol::unspec ( )
inlinestaticconstexprnoexcept

Definition at line 42 of file Protocol.hpp.

◆ family()

constexpr int toolbox::net::DgramProtocol::family ( ) const
inlineconstexprnoexcept

Definition at line 44 of file Protocol.hpp.

Referenced by DgramProtocol().

◆ type()

constexpr int toolbox::net::DgramProtocol::type ( ) const
inlineconstexprnoexcept

Definition at line 45 of file Protocol.hpp.

◆ protocol()

constexpr int toolbox::net::DgramProtocol::protocol ( ) const
inlineconstexprnoexcept

Definition at line 46 of file Protocol.hpp.

Friends And Related Symbol Documentation

◆ operator==

bool operator== ( DgramProtocol  lhs,
DgramProtocol  rhs 
)
friend

Definition at line 26 of file Protocol.hpp.

◆ operator!=

bool operator!= ( DgramProtocol  lhs,
DgramProtocol  rhs 
)
friend

Definition at line 30 of file Protocol.hpp.


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