Bjorn Reese via Boost
2017-07-02 12:16:38 UTC
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?
_______________________________________________
Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost
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?
_______________________________________________
Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost