additions

This commit is contained in:
2026-05-24 00:40:45 +03:00
parent c5aef33171
commit c55a34f33c
42 changed files with 5019 additions and 2331 deletions

View File

@@ -182,7 +182,20 @@ void CSteamNetworkServer::ClientConnected( SteamNetConnectionStatusChangedCallba
callback.m_ullUserConnection = pParam->m_hConn;
m_pInterface->SetConnectionPollGroup(pParam->m_hConn, m_hPollGroup);
m_hConnections.AppendTail(pParam->m_hConn);
break;
case k_ESteamNetworkingConnectionState_ClosedByPeer:
case k_ESteamNetworkingConnectionState_ProblemDetectedLocally:
callback.m_eType = NET_DISCONNECTED;
callback.m_ullUserID = pParam->m_info.m_identityRemote.GetSteamID64();
callback.m_ullUserConnection = pParam->m_hConn;
for ( int i = 0; i < m_hConnections.GetSize(); i++ )
{
m_pInterface->CloseConnection(pParam->m_hConn, 0, "Connection denied", 0);
if (m_hConnections[i] != pParam->m_hConn)
continue;
m_hConnections.RemoveAt(i);
break;
}
break;
default:
break;