Beast Logo

PrevUpHomeNext

websocket::stream::async_accept

Start reading and responding to a WebSocket HTTP Upgrade request.

template<
    class AcceptHandler>
async_return_type< AcceptHandler, void(error_code)>
async_accept(
    AcceptHandler&& handler);

template<
    class ConstBufferSequence,
    class AcceptHandler>
async_return_type< AcceptHandler, void(error_code)>
async_accept(
    ConstBufferSequence const& buffers,
    AcceptHandler&& handler);

Start responding to a WebSocket HTTP Upgrade request.

template<
    class Fields,
    class AcceptHandler>
async_return_type< AcceptHandler, void(error_code)>
async_accept(
    http::header< true, Fields > const& req,
    AcceptHandler&& handler);

template<
    class Fields,
    class ConstBufferSequence,
    class AcceptHandler>
async_return_type< AcceptHandler, void(error_code)>
async_accept(
    http::header< true, Fields > const& req,
    ConstBufferSequence const& buffers,
    AcceptHandler&& handler);

PrevUpHomeNext