Boost C++ Libraries Home Libraries People FAQ More

PrevUpHomeNext

generic::seq_packet_protocol

Encapsulates the flags needed for a generic sequenced packet socket.

class seq_packet_protocol
Types

Name

Description

endpoint

The type of an endpoint.

socket

The generic socket type.

Member Functions

Name

Description

family

Obtain an identifier for the protocol family.

protocol

Obtain an identifier for the protocol.

seq_packet_protocol [constructor]

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

Construct a generic protocol object from a specific protocol.

type

Obtain an identifier for the type of the protocol.

Friends

Name

Description

operator!=

Compare two protocols for inequality.

operator==

Compare two protocols for equality.

The generic::seq_packet_protocol class contains flags necessary for seq_packet-oriented sockets of any address family and protocol.

Examples

Constructing using a native address family and socket protocol:

seq_packet_protocol p(AF_INET, IPPROTO_SCTP);
Thread Safety

Distinct objects: Safe.

Shared objects: Safe.

Requirements

Header: boost/asio/generic/seq_packet_protocol.hpp

Convenience header: boost/asio.hpp


PrevUpHomeNext