Encapsulates the flags needed for a generic stream-oriented socket. More...
#include <stream_protocol.hpp>
| Public Types | |
| typedef basic_endpoint < stream_protocol > | endpoint | 
| The type of an endpoint.  More... | |
| typedef basic_stream_socket < stream_protocol > | socket | 
| The generic socket type.  More... | |
| typedef basic_socket_iostream < stream_protocol > | iostream | 
| The generic socket iostream type.  More... | |
| Public Member Functions | |
| stream_protocol (int address_family, int socket_protocol) | |
| Construct a protocol object for a specific address family and protocol.  More... | |
| template<typename Protocol > | |
| stream_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 stream_protocol &p1, const stream_protocol &p2) | 
| Compare two protocols for equality.  More... | |
| bool | operator!= (const stream_protocol &p1, const stream_protocol &p2) | 
| Compare two protocols for inequality.  More... | |
Encapsulates the flags needed for a generic stream-oriented socket.
The boost::asio::generic::stream_protocol class contains flags necessary for stream-oriented sockets of any address family and protocol.
The type of an endpoint.
The generic socket iostream type.
The generic socket type.
| 
 | inline | 
Construct a protocol object for a specific address family and protocol.
| 
 | inline | 
Construct a generic protocol object from a specific protocol.
| c bad_cast Thrown if the source protocol is not stream-oriented. | 
References boost::lambda::throw_exception(), and type().
| 
 | inline | 
Obtain an identifier for the protocol family.
| 
 | inline | 
Obtain an identifier for the protocol.
| 
 | inline | 
Obtain an identifier for the type of the protocol.
Referenced by stream_protocol().
| 
 | friend | 
Compare two protocols for inequality.
| 
 | friend | 
Compare two protocols for equality.