From 2ca9a070b4481a06862630caafae0f85f349c353 Mon Sep 17 00:00:00 2001 From: Colin Ward Date: Tue, 23 Apr 2024 06:25:57 +0900 Subject: [PATCH] Get rendezvous working on Windows The Qt version of RRendezvous was not working on Windows, due to a possible bug or implementation detail on the Windows version of the QLocalSocket class. It requires that the waitForBytesWritten() method is called, or no data will be sent to the target socket. --- Qt/QtLocalSocket.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Qt/QtLocalSocket.cpp b/Qt/QtLocalSocket.cpp index 187ab70..973c1a8 100644 --- a/Qt/QtLocalSocket.cpp +++ b/Qt/QtLocalSocket.cpp @@ -284,6 +284,9 @@ TInt RLocalSocket::write(const unsigned char *a_pcucData, TInt a_iDataSize) { RetVal = KErrNone; + /* Although calling waitForBytesWritten() shouldn't be necessary, it is required for Windows */ + + m_oLocalSocket.waitForBytesWritten(); m_oLocalSocket.flush(); } else