make it clear which functions are actually only used by the central server

This commit is contained in:
Volker Fischer 2011-05-04 07:00:43 +00:00
parent e71166d96c
commit ed74f3e370
3 changed files with 11 additions and 11 deletions

View File

@ -246,17 +246,17 @@ public slots:
}
void OnCLReqServerList ( CHostAddress InetAddr )
{ ServerListManager.QueryServerList ( InetAddr ); }
{ ServerListManager.CentralServerQueryServerList ( InetAddr ); }
void OnCLRegisterServerReceived ( CHostAddress InetAddr,
CServerCoreInfo ServerInfo )
{
ServerListManager.RegisterServer ( InetAddr, ServerInfo );
ServerListManager.CentralServerRegisterServer ( InetAddr, ServerInfo );
}
void OnCLUnregisterServerReceived ( CHostAddress InetAddr )
{
ServerListManager.UnregisterServer ( InetAddr );
ServerListManager.CentralServerUnregisterServer ( InetAddr );
}

View File

@ -243,8 +243,8 @@ void CServerListManager::OnTimerPollList()
}
}
void CServerListManager::RegisterServer ( const CHostAddress& InetAddr,
const CServerCoreInfo& ServerInfo )
void CServerListManager::CentralServerRegisterServer ( const CHostAddress& InetAddr,
const CServerCoreInfo& ServerInfo )
{
QMutexLocker locker ( &Mutex );
@ -296,7 +296,7 @@ void CServerListManager::RegisterServer ( const CHostAddress& InetAddr,
}
}
void CServerListManager::UnregisterServer ( const CHostAddress& InetAddr )
void CServerListManager::CentralServerUnregisterServer ( const CHostAddress& InetAddr )
{
QMutexLocker locker ( &Mutex );
@ -321,7 +321,7 @@ void CServerListManager::UnregisterServer ( const CHostAddress& InetAddr )
}
}
void CServerListManager::QueryServerList ( const CHostAddress& InetAddr )
void CServerListManager::CentralServerQueryServerList ( const CHostAddress& InetAddr )
{
QMutexLocker locker ( &Mutex );

View File

@ -143,12 +143,12 @@ public:
bool GetIsCentralServer() const { return bIsCentralServer; }
void RegisterServer ( const CHostAddress& InetAddr,
const CServerCoreInfo& ServerInfo );
void CentralServerRegisterServer ( const CHostAddress& InetAddr,
const CServerCoreInfo& ServerInfo );
void UnregisterServer ( const CHostAddress& InetAddr );
void CentralServerUnregisterServer ( const CHostAddress& InetAddr );
void QueryServerList ( const CHostAddress& InetAddr );
void CentralServerQueryServerList ( const CHostAddress& InetAddr );
// set server infos -> per definition the server info of this server is