Boost C++ Libraries

...one of the most highly regarded and expertly designed C++ library projects in the world. Herb Sutter and Andrei Alexandrescu, C++ Coding Standards

This is the documentation for an old version of Boost. Click here to view this page for the latest version.
PrevUpHomeNext

role_type

The role of local or remote peer.

Synopsis

Defined in header <boost/beast/core/role.hpp>

enum role_type

Values

Name

Description

client

The stream is operating as a client.

server

The stream is operating as a server.

Description

Whether the endpoint is a client or server affects the behavior of teardown. The teardown behavior also depends on the type of the stream being torn down. The default implementation of teardown for regular TCP/IP sockets is as follows:

When the next layer type is a net::ssl::stream, the connection is closed by performing the SSL closing handshake corresponding to the role type, client or server.

Convenience header <boost/beast/core.hpp>


PrevUpHomeNext