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

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

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

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

PrevUpHomeNext