The role of local or remote peer.
Defined in header
The stream is operating as a client.
The stream is operating as a server.
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.