From e2a6820d341b7e9e74bb8c1e4994716da5b435f6 Mon Sep 17 00:00:00 2001 From: Norman Princen Date: Tue, 12 May 2020 13:18:47 -0700 Subject: [PATCH] Minimize SendTo and Read Socket Timeout Delays SendTo and Read were using longer than necessary socket timeouts that may add to process time delay and stuttering. They were also using different values between Window and Linux/Mac. The timeouts are now standardized for all versions and coded in the same manner as the xplaneConnect.c functions. --- xpcPlugin/UDPSocket.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xpcPlugin/UDPSocket.cpp b/xpcPlugin/UDPSocket.cpp index 110bcea..9defeb0 100644 --- a/xpcPlugin/UDPSocket.cpp +++ b/xpcPlugin/UDPSocket.cpp @@ -110,7 +110,7 @@ namespace XPC tv.tv_usec = 0; // Select Command - int status = select(-1, &stReadFDS, (FD_SET *)0, &stExceptFDS, &tv); + int status = select(-1, &stReadFDS, (FD_SET*)0, &stExceptFDS, &tv); if (status < 0) { #ifdef _WIN32