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

#include <toolbox/net/Protocol.hpp>

Public Member Functions

constexpr StreamProtocol (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 tcp4 () noexcept
 
static constexpr auto tcp6 () noexcept
 
static constexpr auto unix () noexcept
 
static constexpr auto unspec () noexcept
 

Friends

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

Detailed Description

Definition at line 52 of file Protocol.hpp.

Constructor & Destructor Documentation

◆ StreamProtocol()

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

Definition at line 59 of file Protocol.hpp.

Member Function Documentation

◆ ip4()

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

Definition at line 64 of file Protocol.hpp.

◆ ip6()

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

Definition at line 65 of file Protocol.hpp.

◆ tcp4()

static constexpr auto toolbox::net::StreamProtocol::tcp4 ( )
inlinestaticconstexprnoexcept

Definition at line 66 of file Protocol.hpp.

◆ tcp6()

static constexpr auto toolbox::net::StreamProtocol::tcp6 ( )
inlinestaticconstexprnoexcept

Definition at line 67 of file Protocol.hpp.

◆ unix()

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

Definition at line 68 of file Protocol.hpp.

◆ unspec()

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

Definition at line 69 of file Protocol.hpp.

◆ family()

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

Definition at line 71 of file Protocol.hpp.

Referenced by StreamProtocol().

◆ type()

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

Definition at line 72 of file Protocol.hpp.

◆ protocol()

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

Definition at line 73 of file Protocol.hpp.

Friends And Related Symbol Documentation

◆ operator==

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

Definition at line 53 of file Protocol.hpp.

◆ operator!=

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

Definition at line 57 of file Protocol.hpp.


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