packio
Public Member Functions | List of all members
packio::extra::websocket_adapter< Websocket, kBinary > Class Template Reference

Adapter class to support websockets. More...

#include <packio/extra/websocket.h>

Public Member Functions

template<typename Buffer , typename Handler >
auto async_write_some (Buffer &&buffer, Handler &&handler)
 Set the no_delay option on the lowest layer and Write a websocket message.
 
template<typename... Args>
auto close (Args &&... args)
 Close the lowest layer, closing a websocket is a blocking operation which packio does not expect.
 
template<typename... Args>
auto cancel (Args &&...)
 Cancel is not possible on websockets, raise a compile-time error is the user tries to use it.
 

Detailed Description

template<typename Websocket, bool kBinary = false>
class packio::extra::websocket_adapter< Websocket, kBinary >

Adapter class to support websockets.

Template Parameters
WebsocketThe websocket type to adapt.
kBinaryConfigure the websocket in binary mode. Most likely a boost::beast::websocket::stream<boost::beast::tcp_stream>

The documentation for this class was generated from the following file: