47 #ifndef __sockpp_exception_h 48 #define __sockpp_exception_h 83 int error()
const {
return errno_; }
103 std::string hostname_;
116 int error()
const {
return error_; }
121 const std::string &
hostname()
const {
return hostname_; }
128 #endif // __sockpp_exception_h sys_error()
Creates an error using the current system 'errno' value.
Definition: exception.h:73
static std::string error_str(int err)
Gets a string describing the specified error.
Errors from getaddrinfo.
Definition: exception.h:98
int error() const
Get the error number.
Definition: exception.h:116
System error.
Definition: exception.h:64
const std::string & hostname() const
Get the hostname that triggered the error.
Definition: exception.h:121
Definition: acceptor.h:51
int error() const
Get the error number.
Definition: exception.h:83