From 04436258a57b054a1a063ead35f55c66a62270e3 Mon Sep 17 00:00:00 2001 From: Pontus Fransson Date: Thu, 12 Dec 2013 09:24:57 +0100 Subject: [PATCH] Network - Non-blocking --- Code/Network/NetworkAPI/NetworkClient.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Code/Network/NetworkAPI/NetworkClient.cpp b/Code/Network/NetworkAPI/NetworkClient.cpp index 693ff701..72edaa8a 100644 --- a/Code/Network/NetworkAPI/NetworkClient.cpp +++ b/Code/Network/NetworkAPI/NetworkClient.cpp @@ -77,6 +77,8 @@ NetworkClient::PrivateData::PrivateData(unsigned int socket) sendPostBox = new PostBox; this->thread.Create(this, false); + connection->SetBlockingMode(false); + Start(); } @@ -215,6 +217,8 @@ bool NetworkClient::Connect(unsigned short port, const char serverIP[]) return true; } + privateData->connection->SetBlockingMode(false); + //Connect has failed return false; }