Sponge
CS144's user-space TCP library
Public Member Functions | List of all members
gai_error_category Class Reference

Error category for getaddrinfo and getnameinfo failures. More...

Inheritance diagram for gai_error_category:
Inheritance graph
[legend]

Public Member Functions

string message (const int return_value) const noexcept override
 An error message. More...
 
const char * name () const noexcept override
 The name of the wrapped error. More...
 
- Public Member Functions inherited from std::error_category
error_category (T... args)
 
~error_category (T... args)
 
default_error_condition (T... args)
 
equivalent (T... args)
 
message (T... args)
 
name (T... args)
 
operator!= (T... args)
 
operator< (T... args)
 
operator== (T... args)
 

Detailed Description

Error category for getaddrinfo and getnameinfo failures.

Definition at line 32 of file address.cc.

Member Function Documentation

◆ message()

string gai_error_category::message ( const int  return_value) const
inlineoverridenoexcept

An error message.

Parameters
[in]return_valuethe error return value from getaddrinfo(3) or getnameinfo(3)

Definition at line 39 of file address.cc.

◆ name()

const char* gai_error_category::name ( ) const
inlineoverridenoexcept

The name of the wrapped error.

Definition at line 35 of file address.cc.


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