Skip to content

Commit

Permalink
Get rendezvous working on Windows
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
Colin Ward authored and hitman-codehq committed Apr 22, 2024
1 parent 9c75cd4 commit 2ca9a07
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Qt/QtLocalSocket.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 2ca9a07

Please sign in to comment.