Beast Logo

PrevUpHomeNext

websocket::stream::accept

Read and respond to a WebSocket HTTP Upgrade request.

void
accept();

void
accept(
    error_code& ec);

template<
    class ConstBufferSequence>
void
accept(
    ConstBufferSequence const& buffers);

template<
    class ConstBufferSequence>
void
accept(
    ConstBufferSequence const& buffers,
    error_code& ec);

Respond to a WebSocket HTTP Upgrade request.

template<
    class Body,
    class Fields>
void
accept(
    http::request< Body, Fields > const& request);

template<
    class Body,
    class Fields>
void
accept(
    http::request< Body, Fields > const& request,
    error_code& ec);

PrevUpHomeNext