]> git.ipfire.org Git - thirdparty/open-vm-tools.git/commitdiff
Add missing error codes for AsyncSocket_GetGenericError()
authorJohn Wolfe <jwolfe@vmware.com>
Sun, 1 Jan 2023 06:13:07 +0000 (22:13 -0800)
committerJohn Wolfe <jwolfe@vmware.com>
Sun, 1 Jan 2023 06:13:07 +0000 (22:13 -0800)
AsyncSocket_GetGenericError() returns ETIMEDOUT or ECONNREFUSED
errors when they are encountered.  Added cross-platform #defines that
represent these codes.

open-vm-tools/lib/include/asyncsocket.h

index c2852d15959e77c8863680904512ea50dc685469..768d4ed707b76f2dbe0784a2eb0bdb463178f4fe 100644 (file)
@@ -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