Network/TcpClient: Fix LowDelay

Former-commit-id: 70fc4224ae7f8913e27a3a3cf234500db262f73c
This commit is contained in:
Lynix
2015-11-12 13:19:21 +01:00
parent a26c979d84
commit 81221fbf0b
3 changed files with 22 additions and 2 deletions

View File

@@ -75,7 +75,7 @@ namespace Nz
if (m_isLowDelayEnabled != lowDelay)
{
SocketImpl::SetBlocking(m_handle, lowDelay, &m_lastError);
SocketImpl::SetNoDelay(m_handle, lowDelay, &m_lastError);
m_isLowDelayEnabled = lowDelay;
}
}
@@ -238,7 +238,7 @@ namespace Nz
SocketState newState = SocketImpl::Connect(m_handle, m_peerAddress, msTimeout, &m_lastError);
NazaraAssert(newState != SocketState_Connecting, "Invalid internal return");
// Prevent valid peer adddress in non-connected state
// Prevent valid peer address in non-connected state
if (newState == SocketState_NotConnected)
m_peerAddress = IpAddress::Invalid;