◆ protocol_type
◆ Acceptor()
◆ ~Acceptor()
server_mock::Acceptor::~Acceptor |
( |
| ) |
|
|
inline |
◆ accepted()
◆ async_run()
void server_mock::Acceptor::async_run |
( |
| ) |
|
|
inline |
accept connections asynchronously.
runs until stopped().
◆ init()
stdx::expected< void, std::error_code > server_mock::Acceptor::init |
( |
std::string |
address, |
|
|
uint16_t |
port |
|
) |
| |
|
inline |
◆ stop()
void server_mock::Acceptor::stop |
( |
| ) |
|
|
inline |
◆ stopped()
bool server_mock::Acceptor::stopped |
( |
| ) |
const |
|
inline |
check if acceptor is stopped.
- Returns
- if acceptor is stopped.
◆ stopped_now()
bool server_mock::Acceptor::stopped_now |
( |
| ) |
|
|
inlineprivate |
mark the acceptor as stopped.
- Returns
- whether the acceptor was marked as stopped by this call.
- Return values
-
true | marked acceptor as "stopped" now. |
false | already stopped before. |
◆ client_ep_
◆ client_sessions_
◆ io_ctx_
◆ protocol_name_
std::string server_mock::Acceptor::protocol_name_ |
|
private |
◆ reader_maker_
◆ sock_
◆ stopped_
Monitor<bool> server_mock::Acceptor::stopped_ {false} |
|
private |
◆ tls_server_ctx_
◆ with_tls_
bool server_mock::Acceptor::with_tls_ {false} |
|
private |
◆ work_
The documentation for this class was generated from the following file: