Comment cleanup and correction.
This commit is contained in:
@@ -135,9 +135,5 @@ void DiscoveryServer::ProcessPacket( sockaddr_in *clientAddr, sptr_byte_stream s
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
GameSessionManager::Get().RequestJoin( user );
|
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.
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -275,7 +275,7 @@ bool GameSessionManager::RequestJoin( sptr_user join_user )
|
|||||||
NotifyClientRequestConnect msgNotifyReqConnect( join_user->m_discoveryAddr, 3000 );// join_user->m_discoveryPort);
|
NotifyClientRequestConnect msgNotifyReqConnect( join_user->m_discoveryAddr, 3000 );// join_user->m_discoveryPort);
|
||||||
host_user->sock->send( msgNotifyReqConnect );
|
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);
|
NotifyClientDiscovered msgClientDiscovered( join_user->m_discoveryAddr, 3000 );// host_user->m_discoveryPort);
|
||||||
join_user->sock->send( msgClientDiscovered );
|
join_user->sock->send( msgClientDiscovered );
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user