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

UDP protocol class. More...

#include <protocol.hpp>

Public Types

using Endpoint = BasicInternetEndpoint <Udp>
 
using Socket = BasicDatagramSocket <Udp>
 

Public Member Functions

constexpr Udp (int family=AF_INET) noexcept
 construct the udp protocol instance.
 
constexpr int family () const noexcept
 get the protocol IP 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 Udpv4 () noexcept
 get protocol suitable for IPv4 address family.
 
static Udpv6 () noexcept
 get protocol suitable for IPv6 address family.
 

Detailed Description

UDP protocol class.

Member Typedef Documentation

◆ Endpoint

◆ Socket

Constructor & Destructor Documentation

◆ Udp()

join::Udp::Udp ( int family = AF_INET)
inlineconstexprnoexcept

construct the udp protocol instance.

Parameters
familyIP address family.

Member Function Documentation

◆ family()

int join::Udp::family ( ) const
inlineconstexprnoexcept

get the protocol IP address family.

Returns
the protocol IP address family.

◆ protocol()

int join::Udp::protocol ( ) const
inlineconstexprnoexcept

get the protocol type.

Returns
the protocol type.

◆ type()

int join::Udp::type ( ) const
inlineconstexprnoexcept

get the protocol communication semantic.

Returns
the protocol communication semantic.

◆ v4()

static Udp & join::Udp::v4 ( )
inlinestaticnoexcept

get protocol suitable for IPv4 address family.

Returns
an IPv4 address family suitable protocol.

◆ v6()

static Udp & join::Udp::v6 ( )
inlinestaticnoexcept

get protocol suitable for IPv6 address family.

Returns
an IPv6 address family suitable protocol.

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