NetworkErrorString

Return readable error string for a network error code.

Synopsis

Declared in <util/sock.h>

std::string
NetworkErrorString(int err);

Return Value

A human-readable description of the error.

Parameters

NameDescription
errThe network error code (as returned by WSAGetLastError()/errno).