Function getLastSocketErrorCode

Function Documentation

inline std::error_code getLastSocketErrorCode()

Get the last socket error as an std::error_code.

On Windows, this will use WSAGetLastError and the system category, while on other platforms it will use errno and the generic category.

Returns:

The last socket error