|
C++ Actor Framework 1.0.0
|
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 error & | reject_reason () const &noexcept |
| Returns the reason for rejecting the WebSocket handshake request. | |
| const http::request_header & | header () 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_header & | hdr_ |
| bool | accepted_ = false |
| error | reject_reason_ |
| socket_manager * | parent_ |
Accepts or rejects incoming connection requests.
| Ts | Denotes the types for the worker handshake. |