GREM 3.12.0
Game/Rendering Engine Modules for C++
Loading...
Searching...
No Matches
grem::networking::SocketErrorCategory Struct Reference

Error category type for error codes originating from the Socket API. More...

#include <GREM/networking/Error.hpp>

Inheritance diagram for grem::networking::SocketErrorCategory:

Public Member Functions

const char * name () const noexcept override
std::string message (int condition) const override
bool equivalent (const std::error_code &code, int condition) const noexcept override

Static Public Member Functions

static const SocketErrorCategory & getInstance () noexcept
 Get the canonical global instance of this error category.

Detailed Description

Error category type for error codes originating from the Socket API.

Member Function Documentation

◆ name()

const char * grem::networking::SocketErrorCategory::name ( ) const
nodiscardoverridenoexcept

◆ message()

std::string grem::networking::SocketErrorCategory::message ( int condition) const
nodiscardoverride

◆ equivalent()

bool grem::networking::SocketErrorCategory::equivalent ( const std::error_code & code,
int condition ) const
nodiscardoverridenoexcept

◆ getInstance()

const SocketErrorCategory & grem::networking::SocketErrorCategory::getInstance ( )
inlinestaticnodiscardnoexcept

Get the canonical global instance of this error category.

Returns
a reference to the static SocketErrorCategory object.

The documentation for this struct was generated from the following file: