Encapsulates the flags needed for a generic raw socket.  
 More...
#include <raw_protocol.hpp>
 | 
|   | 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...
  | 
|   | 
Encapsulates the flags needed for a generic raw socket. 
The boost::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:  Constructing from a specific protocol type: 
 
- Thread Safety
 - Distinct objects: Safe.
Shared objects: Safe. 
- Concepts:
 - Protocol. 
 
 
  
  
      
        
          | boost::asio::generic::raw_protocol::raw_protocol  | 
          ( | 
          int  | 
          address_family,  | 
         
        
           | 
           | 
          int  | 
          socket_protocol  | 
         
        
           | 
          ) | 
           |  | 
         
       
   | 
  
inline   | 
  
 
Construct a protocol object for a specific address family and protocol. 
 
 
template<typename Protocol > 
  
  
      
        
          | boost::asio::generic::raw_protocol::raw_protocol  | 
          ( | 
          const Protocol &  | 
          source_protocol | ) | 
           | 
         
       
   | 
  
inline   | 
  
 
Construct a generic protocol object from a specific protocol. 
- Exceptions
 - 
  
     | c bad_cast Thrown if the source protocol is not raw-oriented.  | 
  
   
References boost::lambda::throw_exception(), and type().
 
 
  
  
      
        
          | int boost::asio::generic::raw_protocol::family  | 
          ( | 
           | ) | 
           const | 
         
       
   | 
  
inline   | 
  
 
Obtain an identifier for the protocol family. 
 
 
  
  
      
        
          | int boost::asio::generic::raw_protocol::protocol  | 
          ( | 
           | ) | 
           const | 
         
       
   | 
  
inline   | 
  
 
Obtain an identifier for the protocol. 
 
 
  
  
      
        
          | int boost::asio::generic::raw_protocol::type  | 
          ( | 
           | ) | 
           const | 
         
       
   | 
  
inline   | 
  
 
Obtain an identifier for the type of the protocol. 
Referenced by raw_protocol().
 
 
Compare two protocols for inequality. 
 
 
Compare two protocols for equality. 
 
 
The documentation for this class was generated from the following file: