Boost logo

Boost :

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:


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

Boost list run by bdawes at, gregod at, cpdaniel at, john at