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:

   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?


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk