Bitcoin ABC  0.26.3
P2P Digital Currency
Functions
sock.cpp File Reference
#include <util/sock.h>
#include <compat.h>
#include <logging.h>
#include <threadinterrupt.h>
#include <tinyformat.h>
#include <util/system.h>
#include <util/time.h>
#include <codecvt>
#include <cwchar>
#include <locale>
#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 353 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 24 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.

Too bad there are two incompatible implementations of the thread-safe strerror.

Definition at line 331 of file sock.cpp.

Here is the caller graph for this function: