#include <ip.hpp>

Public Types

typedef peer_base< udppeer
 
typedef socket_stream< udpsocket
 
typedef socket_acceptor< udpacceptor
 
typedef address_resolver< udpresolver
 

Public Member Functions

int type () const
 
int protocol () const
 
int family () const
 

Static Public Member Functions

static udp v4 ()
 
static udp v6 ()
 

Detailed Description

The udp class represents all settings to handle udp socket connections

Member Typedef Documentation

◆ acceptor

Shortcut to a udp based acceptor

◆ peer

Shortcut to a udp based peer

◆ resolver

Shortcut to a udp based address resolver

◆ socket

Shortcut to a udp based socket

Member Function Documentation

◆ family()

int matador::udp::family ( ) const
inline

Returns the socket family

Returns
Socket family

◆ protocol()

int matador::udp::protocol ( ) const
inline

Returns the socket protocol

Returns
Socket protocol

◆ type()

int matador::udp::type ( ) const
inline

Returns the type of the socket

Returns
Type of the socket

◆ v4()

static udp matador::udp::v4 ( )
inlinestatic

Creates an instance of udp representing an IPv4 socket

Returns
IPv4 udp object

◆ v6()

static udp matador::udp::v6 ( )
inlinestatic

Creates an instance of udp representing an IPv6 socket

Returns
IPv6 udp object

The documentation for this class was generated from the following file:
  • matador/net/ip.hpp