$include_dir="/home/hyper-archives/boost/include"; include("$include_dir/msg-header.inc") ?>
Subject: [boost] [beast] socket versus stream
From: Bjorn Reese (breese_at_[hidden])
Date: 2017-07-02 12:16:38
The HTTP API provides a set of free function for all operations, so
all interaction follows this pattern:
operation(socket, args);
The WebSocket API wraps an Asio socket in a stream, so all operations
are like this:
stream.operation(args);
I realize that the latter choice is a consequence of using SSL, but I
am wondering why there is no socket.operation(args) style for the
former?