additions
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user