Whisper Library
 All Classes Functions Variables Typedefs Enumerations Friends
boost::asio::ip::RawSocketProtocol< P > Class Template Reference

Protocol for using raw sockets. More...

Public Types

typedef
boost::asio::basic_raw_socket
< RawSocketProtocol
socket
 The RAW socket type.
 
typedef
boost::asio::ip::basic_resolver
< RawSocketProtocol
resolver
 The RAW resolver type.
 
typedef
boost::asio::ip::basic_endpoint
< RawSocketProtocol
endpoint
 The type of a RAW endpoint.
 

Public Member Functions

 RawSocketProtocol ()
 default constructor
 
int type () const
 protocol type identifier
 
int protocol () const
 
int family () const
 

Static Public Member Functions

static RawSocketProtocol v4 ()
 Construct to represent the IPv4 RAW protocol.
 
static RawSocketProtocol v6 ()
 Construct to represent the IPv6 RAW protocol.
 

Private Member Functions

 RawSocketProtocol (int protocol, int family)
 private constructor
 

Private Attributes

int m_protocol
 protocol identifier
 
int m_family
 protocol family indentifier
 

Friends

bool operator== (const RawSocketProtocol &p1, const RawSocketProtocol &p2)
 Compare two protocols for equality.
 
bool operator!= (const RawSocketProtocol &p1, const RawSocketProtocol &p2)
 Compare two protocols for inequality.
 

Detailed Description

template<int P>
class boost::asio::ip::RawSocketProtocol< P >

Protocol for using raw sockets.

Member Function Documentation

template<int P>
int boost::asio::ip::RawSocketProtocol< P >::family ( ) const
inline
Returns
the protocol family indentifier
template<int P>
int boost::asio::ip::RawSocketProtocol< P >::protocol ( ) const
inline
Returns
the protocol identifier