Comment cleanup and correction.

This commit is contained in:
HikikoMarmy
2025-04-14 19:43:47 +01:00
parent 25380c33f8
commit a67c6fca0c
2 changed files with 1 additions and 5 deletions

View File

@@ -135,9 +135,5 @@ void DiscoveryServer::ProcessPacket( sockaddr_in *clientAddr, sptr_byte_stream s
else
{
GameSessionManager::Get().RequestJoin( user );
// Theory: It may be possible to get the joining clients local address
// by tricking it with an 07 packet, then sending NotifyClientDiscovered.
// This would allow local network users to play together.
}
}

View File

@@ -275,7 +275,7 @@ bool GameSessionManager::RequestJoin( sptr_user join_user )
NotifyClientRequestConnect msgNotifyReqConnect( join_user->m_discoveryAddr, 3000 );// join_user->m_discoveryPort);
host_user->sock->send( msgNotifyReqConnect );
// Then, tell the joiner where to send packets.
// Then, tell the joiner its own address.
NotifyClientDiscovered msgClientDiscovered( join_user->m_discoveryAddr, 3000 );// host_user->m_discoveryPort);
join_user->sock->send( msgClientDiscovered );