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 Fields>
void
accept(
    http::header< true, Fields > const& req);

template<
    class Fields>
void
accept(
    http::header< true, Fields > const& req,
    error_code& ec);

template<
    class Fields,
    class ConstBufferSequence>
void
accept(
    http::header< true, Fields > const& req,
    ConstBufferSequence const& buffers);

template<
    class Fields,
    class ConstBufferSequence>
void
accept(
    http::header< true, Fields > const& req,
    ConstBufferSequence const& buffers,
    error_code& ec);

PrevUpHomeNext