Bitcoin Core  22.99.0
P2P Digital Currency
Functions
sock.cpp File Reference
#include <compat.h>
#include <logging.h>
#include <threadinterrupt.h>
#include <tinyformat.h>
#include <util/sock.h>
#include <util/system.h>
#include <util/time.h>
#include <stdexcept>
#include <string>
Include dependency graph for sock.cpp:

Go to the source code of this file.

Functions

static bool IOErrorIsPermanent (int err)
 
std::string NetworkErrorString (int err)
 Return readable error string for a network error code. More...
 
bool CloseSocket (SOCKET &hSocket)
 Close socket and set hSocket to INVALID_SOCKET. More...
 

Function Documentation

◆ CloseSocket()

bool CloseSocket ( SOCKET hSocket)

Close socket and set hSocket to INVALID_SOCKET.

Definition at line 331 of file sock.cpp.

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

◆ IOErrorIsPermanent()

static bool IOErrorIsPermanent ( int  err)
inlinestatic

Definition at line 25 of file sock.cpp.

Here is the caller graph for this function:

◆ NetworkErrorString()

std::string NetworkErrorString ( int  err)

Return readable error string for a network error code.

Definition at line 313 of file sock.cpp.

Here is the caller graph for this function: