From: John Wolfe Date: Sun, 1 Jan 2023 06:13:07 +0000 (-0800) Subject: Add missing error codes for AsyncSocket_GetGenericError() X-Git-Tag: stable-12.2.0~16 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f749bd5b0647c7bdf8aa46ca035e070b5def352e;p=thirdparty%2Fopen-vm-tools.git Add missing error codes for AsyncSocket_GetGenericError() AsyncSocket_GetGenericError() returns ETIMEDOUT or ECONNREFUSED errors when they are encountered. Added cross-platform #defines that represent these codes. --- diff --git a/open-vm-tools/lib/include/asyncsocket.h b/open-vm-tools/lib/include/asyncsocket.h index c2852d159..768d4ed70 100644 --- a/open-vm-tools/lib/include/asyncsocket.h +++ b/open-vm-tools/lib/include/asyncsocket.h @@ -101,6 +101,8 @@ extern "C" { #define ASOCK_ECONNABORTED WSAECONNABORTED #define ASOCK_EPIPE ERROR_NO_DATA #define ASOCK_EHOSTUNREACH WSAEHOSTUNREACH +#define ASOCK_ETIMEDOUT WSAETIMEDOUT +#define ASOCK_ECONNREFUSED WSAECONNREFUSED #else #define ASOCK_ENOTCONN ENOTCONN #define ASOCK_ENOTSOCK ENOTSOCK @@ -109,6 +111,8 @@ extern "C" { #define ASOCK_EWOULDBLOCK EWOULDBLOCK #define ASOCK_ENETUNREACH ENETUNREACH #define ASOCK_ECONNRESET ECONNRESET +#define ASOCK_ETIMEDOUT ETIMEDOUT +#define ASOCK_ECONNREFUSED ECONNREFUSED #define ASOCK_ECONNABORTED ECONNABORTED #define ASOCK_EPIPE EPIPE #define ASOCK_EHOSTUNREACH EHOSTUNREACH