IOErrorIsPermanent

Check whether a socket error code represents a permanent failure.

Synopsis

Declared in <util/sock.h>

bool
IOErrorIsPermanent(int err);

Return Value

true if the error is permanent, false if it is transient and the operation may be retried.

Parameters

NameDescription
errThe socket error code to classify (as returned by WSAGetLastError()/errno).