#include <ip.hpp>

Public Types

typedef peer_base< tcppeer
 
typedef socket_stream< tcpsocket
 
typedef socket_acceptor< tcpacceptor
 
typedef address_resolver< tcpresolver
 

Public Member Functions

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

Static Public Member Functions

static tcp v4 ()
 
static tcp v6 ()
 

Detailed Description

The tcp class represents all settings to handle tcp socket connections

Member Typedef Documentation

◆ acceptor

Shortcut to a tcp based acceptor

◆ peer

Shortcut to a tcp based peer

◆ resolver

Shortcut to a tcp based address resolver

◆ socket

Shortcut to a tcp based socket

Member Function Documentation

◆ family()

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

Returns the socket family

Returns
Socket family

◆ protocol()

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

Returns the socket protocol

Returns
Socket protocol

◆ type()

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

Returns the type of the socket

Returns
Type of the socket

◆ v4()

static tcp matador::tcp::v4 ( )
inlinestatic

Creates an instance of tcp representing an IPv4 socket

Returns
IPv4 tcp object

◆ v6()

static tcp matador::tcp::v6 ( )
inlinestatic

Creates an instance of tcp representing an IPv6 socket

Returns
IPv6 tcp object

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