Home | Libraries | People | FAQ | More |
Encapsulates the flags needed for a generic stream-oriented socket.
class stream_protocol
Name |
Description |
---|---|
The type of an endpoint. |
|
The generic socket iostream type. |
|
The generic socket type. |
Name |
Description |
---|---|
Obtain an identifier for the protocol family. |
|
Obtain an identifier for the protocol. |
|
stream_protocol [constructor] |
Construct a protocol object for a specific address family and protocol.
|
Obtain an identifier for the type of the protocol. |
Name |
Description |
---|---|
Compare two protocols for inequality. |
|
Compare two protocols for equality. |
The generic::stream_protocol
class contains flags
necessary for stream-oriented sockets of any address family and protocol.
Constructing using a native address family and socket protocol:
stream_protocol p(AF_INET, IPPROTO_TCP);
Constructing from a specific protocol type:
stream_protocol p(boost::asio::ip::tcp::v4());
Distinct objects: Safe.
Shared objects: Safe.
Header: boost/asio/generic/stream_protocol.hpp
Convenience header: boost/asio.hpp