Network/TcpClient: Allow configuration before connection

Former-commit-id: 65c81f994ae5b9e9cce0132e2a86b1918879b24f
This commit is contained in:
Lynix
2015-11-13 14:01:18 +01:00
parent 8935aa895d
commit 5325513bd8
3 changed files with 22 additions and 14 deletions

View File

@@ -76,9 +76,9 @@ namespace Nz
void AbstractSocket::OnOpened()
{
SocketError error;
if (!SocketImpl::SetBlocking(m_handle, m_isBlockingEnabled, &error))
NazaraWarning("Failed to set socket blocking mode (0x" + String::Number(ERROR, 16) + ')');
SocketError errorCode;
if (!SocketImpl::SetBlocking(m_handle, m_isBlockingEnabled, &errorCode))
NazaraWarning("Failed to set socket blocking mode (0x" + String::Number(errorCode, 16) + ')');
}
bool AbstractSocket::Open(NetProtocol protocol)