diff --git a/libluna/include/luna/SystemError.h b/libluna/include/luna/SystemError.h index 869f7a7f..43b2579c 100644 --- a/libluna/include/luna/SystemError.h +++ b/libluna/include/luna/SystemError.h @@ -45,11 +45,15 @@ #define EOVERFLOW 75 // Value too large for defined data type #define EILSEQ 84 // Invalid or incomplete multibyte or wide character #define ENOTSOCK 88 // Socket operation on non-socket +#define EDESTADDRREQ 89 // Destination address required +#define EPROTOTYPE 91 // Protocol wrong type for socket #define ENOTSUP 95 // Operation not supported #define EOPNOTSUPP 95 // Operation not supported +#define EAFNOSUPPORT 97 // Address family not supported by protocol #define EADDRINUSE 98 // Address already in use #define ENETRESET 102 // Network dropped connection on reset #define ECONNRESET 104 // Connection reset by peer #define EISCONN 106 // Transport endpoint is already connected +#define ENOTCONN 107 // Transport endpoint is not connected #define ETIMEDOUT 110 // Connection timed out #define EALREADY 114 // Operation already in progress diff --git a/libluna/src/SystemError.cpp b/libluna/src/SystemError.cpp index 9b7bf473..744ae86d 100644 --- a/libluna/src/SystemError.cpp +++ b/libluna/src/SystemError.cpp @@ -56,6 +56,10 @@ const char* error_string(int error) case EISCONN: return "Transport endpoint is already connected"; case ETIMEDOUT: return "Connection timed out"; case EALREADY: return "Operation already in progress"; + case EDESTADDRREQ: return "Destination address required"; + case EPROTOTYPE: return "Protocol wrong type for socket"; + case EAFNOSUPPORT: return "Address family not supported by protocol"; + case ENOTCONN: return "Transport endpoint is not connected"; default: return "Unknown error"; } }