Network - Non-blocking

This commit is contained in:
Pontus Fransson 2013-12-12 09:24:57 +01:00
parent bbe59836da
commit 04436258a5
1 changed files with 4 additions and 0 deletions

View File

@ -77,6 +77,8 @@ NetworkClient::PrivateData::PrivateData(unsigned int socket)
sendPostBox = new PostBox<CustomNetProtocol>;
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;
}