C++ Actor Framework 1.0.0
Loading...
Searching...
No Matches
caf::net::web_socket::acceptor< Ts > Class Template Referenceabstract

Accepts or rejects incoming connection requests. More...

#include <acceptor.hpp>

Public Member Functions

 acceptor (const http::request_header &hdr, socket_manager *parent)
 
virtual void accept (Ts... xs)=0
 Accepts the WebSocket handshake request.
 
void reject (error reason)
 Sets a reason for rejecting the WebSocket handshake request.
 
bool accepted () const noexcept
 Returns whether the WebSocket handshake request was accepted.
 
error && reject_reason () &&noexcept
 Returns the reason for rejecting the WebSocket handshake request.
 
const errorreject_reason () const &noexcept
 Returns the reason for rejecting the WebSocket handshake request.
 
const http::request_headerheader () const noexcept
 Returns the HTTP header of the WebSocket handshake request.
 
net::socket socket () const
 Returns the socket that accepted the WebSocket connection.
 

Protected Attributes

const http::request_headerhdr_
 
bool accepted_ = false
 
error reject_reason_
 
socket_managerparent_
 

Detailed Description

template<class... Ts>
class caf::net::web_socket::acceptor< Ts >

Accepts or rejects incoming connection requests.

Template Parameters
TsDenotes the types for the worker handshake.

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