Bitcoin Core 31.0.0
P2P Digital Currency
Loading...
Searching...
No Matches
sock.h File Reference
#include <compat/compat.h>
#include <util/threadinterrupt.h>
#include <util/time.h>
#include <chrono>
#include <memory>
#include <span>
#include <string>
#include <unordered_map>
Include dependency graph for sock.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  Sock
 RAII helper class that manages a socket and closes it automatically when it goes out of scope. More...
struct  Sock::Events
 Auxiliary requested/occurred events to wait for in WaitMany(). More...
struct  Sock::HashSharedPtrSock
struct  Sock::EqualSharedPtrSock

Functions

std::string NetworkErrorString (int err)
 Return readable error string for a network error code.

Variables

static constexpr auto MAX_WAIT_FOR_IO = 1s
 Maximum time to wait for I/O readiness.

Function Documentation

◆ NetworkErrorString()

std::string NetworkErrorString ( int err)

Return readable error string for a network error code.

Definition at line 426 of file sock.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

Variable Documentation

◆ MAX_WAIT_FOR_IO

auto MAX_WAIT_FOR_IO = 1s
staticconstexpr

Maximum time to wait for I/O readiness.

It will take up until this time to break off in case of an interruption.

Definition at line 22 of file sock.h.