Realistic 3D camera system
3D camera system components
Public Types | Public Member Functions | Friends | List of all members
asio::generic::raw_protocol Class Reference

Encapsulates the flags needed for a generic raw socket. More...

#include <raw_protocol.hpp>

Public Types

typedef basic_endpoint< raw_protocolendpoint
 The type of an endpoint. More...
 
typedef basic_raw_socket< raw_protocolsocket
 The generic socket type. More...
 

Public Member Functions

 raw_protocol (int address_family, int socket_protocol)
 Construct a protocol object for a specific address family and protocol. More...
 
template<typename Protocol >
 raw_protocol (const Protocol &source_protocol)
 Construct a generic protocol object from a specific protocol. More...
 
int type () const
 Obtain an identifier for the type of the protocol. More...
 
int protocol () const
 Obtain an identifier for the protocol. More...
 
int family () const
 Obtain an identifier for the protocol family. More...
 

Friends

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

Detailed Description

Encapsulates the flags needed for a generic raw socket.

The asio::generic::raw_protocol class contains flags necessary for raw sockets of any address family and protocol.

Examples
Constructing using a native address family and socket protocol:
raw_protocol p(AF_INET, IPPROTO_ICMP);
Constructing from a specific protocol type:
Thread Safety
Distinct objects: Safe.
Shared objects: Safe.
Concepts:
Protocol.

Definition at line 49 of file raw_protocol.hpp.

Member Typedef Documentation

The type of an endpoint.

Definition at line 106 of file raw_protocol.hpp.

The generic socket type.

Definition at line 109 of file raw_protocol.hpp.

Constructor & Destructor Documentation

asio::generic::raw_protocol::raw_protocol ( int  address_family,
int  socket_protocol 
)
inline

Construct a protocol object for a specific address family and protocol.

Definition at line 53 of file raw_protocol.hpp.

template<typename Protocol >
asio::generic::raw_protocol::raw_protocol ( const Protocol &  source_protocol)
inline

Construct a generic protocol object from a specific protocol.

Exceptions

Definition at line 64 of file raw_protocol.hpp.

Member Function Documentation

int asio::generic::raw_protocol::family ( ) const
inline

Obtain an identifier for the protocol family.

Definition at line 88 of file raw_protocol.hpp.

int asio::generic::raw_protocol::protocol ( ) const
inline

Obtain an identifier for the protocol.

Definition at line 82 of file raw_protocol.hpp.

int asio::generic::raw_protocol::type ( ) const
inline

Obtain an identifier for the type of the protocol.

Definition at line 76 of file raw_protocol.hpp.

Friends And Related Function Documentation

bool operator!= ( const raw_protocol p1,
const raw_protocol p2 
)
friend

Compare two protocols for inequality.

Definition at line 100 of file raw_protocol.hpp.

bool operator== ( const raw_protocol p1,
const raw_protocol p2 
)
friend

Compare two protocols for equality.

Definition at line 94 of file raw_protocol.hpp.


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