xentara-utils v2.0.4
The Xentara Utility Library
Loading...
Searching...
No Matches
xentara::utils::posix Namespace Reference

Posix functionality. More...

Classes

class  File
 A Posix file descriptor that closes itself on destruct. More...
 
class  SignalBlocker
 Helper class to temporarily block all signals. More...
 

Functions

auto gaiErrorCategory () -> const std::error_category &
 Returns an error category for getaddrinfo() and getnameinfo() errors.
 

Detailed Description

Posix functionality.

This namespace contains Posix-specific functionality.

Function Documentation

◆ gaiErrorCategory()

auto xentara::utils::posix::gaiErrorCategory ( ) -> const std::error_category &

Returns an error category for getaddrinfo() and getnameinfo() errors.

Note
This function is not available under Windows. Under Windows, getaddrinfo() and getnameinfo() return normal Windows errors code that use std::system_category().
Include file
#include <xentara/utils/posix/gaiErrorcategory.hpp>
Returns
The category