mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2026-11-17 19:34:25 +01:00
Updated comment explaining enet_peer_timeout's use in NetPlayClient.cpp and NetPlayServer.cpp; Corrected syntax related to PEER_TIMEOUT in NetplayClient.cpp
This commit is contained in:
1 parent
2f367d7a9b
commit
477c20e28d
2 files changed
+12
-4
No files matched your search
@@ -402,6 +402,8 @@ ConnectionError NetPlayServer::OnConnect(ENetPeer* incoming_connection, sf::Pack
|
||||
if (StringUTF8CodePointCount(new_player.name) > MAX_NAME_LENGTH)
|
||||
return ConnectionError::NameTooLong;
|
||||
|
||||
// Update time in milliseconds of no acknoledgment of
|
||||
// sent packets before a connection is deemed disconnected
|
||||
enet_peer_timeout(incoming_connection, 0, PEER_TIMEOUT.count(), PEER_TIMEOUT.count());
|
||||
|
||||
// force a ping on first netplay loop
|
||||
@@ -2085,6 +2087,10 @@ void NetPlayServer::SendResponse(MessageID message_id, const Client& player)
|
||||
response << MessageID::HostInputAuthority;
|
||||
response << m_host_input_authority;
|
||||
break;
|
||||
default:
|
||||
INFO_LOG_FMT(NETPLAY, "Warning! Call to SendResponse() failed to send a packet.");
|
||||
return;
|
||||
break;
|
||||
}
|
||||
|
||||
// no player specified
|
||||
|
||||
Reference in new issue
Block a user