MCPcopy Create free account
hub / github.com/boostorg/asio / close_after

Method close_after

example/cpp11/timeouts/blocking_token_tcp_client.cpp:39–42  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

37struct close_after
38{
39 close_after(std::chrono::steady_clock::duration t, tcp_socket& s)
40 : timeout_(t), socket_(s)
41 {
42 }
43
44 // The maximum time to wait for an asynchronous operation to complete.
45 std::chrono::steady_clock::duration timeout_;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected