MCPcopy Create free account
hub / github.com/chronoxor/CppServer / reset_requests

Method reset_requests

proto/simple_protocol.cpp:374–383  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

372}
373
374void Client::reset_requests()
375{
376 Sender::reset();
377 Receiver::reset();
378
379 for (auto& request : _requests_by_id_SimpleResponse)
380 std::get<2>(request.second).set_exception(std::make_exception_ptr(std::runtime_error("Reset client!")));
381 _requests_by_id_SimpleResponse.clear();
382 _requests_by_timestamp_SimpleResponse.clear();
383}
384
385void Client::watchdog_requests(uint64_t utc)
386{

Callers

nothing calls this directly

Calls 1

clearMethod · 0.80

Tested by

no test coverage detected