25 #include <system_error>
47 namespace libwire::error {
std::error_condition make_error_condition(generic)
Error code that should not occur on normal library operation.
Requested host doesn't exists, but DNS server answer is non-authoritative.
Requested host exists, but does not have any addresses defined.
Reported by tcp::socket::connect to indicate that no service is listening on specified port...
Failed to connect to destination server.
Attempt to use not connected socket.
Underlying implementation reported temporary failure -OR- non-blocking operation would block...
Reported by listener::bind to indicate that interface with specified address doesn't exists or not lo...
Non-blocking operation started, but not completed yet.
Previous non-blocking operation still running.
Reported by listener::bind or listen to indicate that port is already used.
generic
These values combine together different error codes to simplify error handling where reaction to diff...
Operating system out of memory.
System call interrupted by signal (POSIX-specific).
Host destination is unreachable.
A connection has been aborted.
Timed out while trying to perform operation.
std::error_category & system_category()
Obtain reference to static instance of category for various network and socket errors.
Invalid argument passed to function.
Destination finished transmission.
Error code not mapped to any other condition.
RST segment received (TCP).
Per-process limitation reached.
Requested protocol is not supported.
Host is known to be down.
Operation completed successfully.
Cannot send after transport endpoint shutdown.
Remote side of connection finished transmission.
Disconnected, either forcibly or gracefully.
std::error_category & dns_category()
Obtain reference to static instance of category for DNS errors.
Requested host doesn't exists.
Access to resource disallowed.
System-wide limitation reached.