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