make it clear which functions are actually only used by the central server
This commit is contained in:
parent
e71166d96c
commit
ed74f3e370
3 changed files with 11 additions and 11 deletions
|
@ -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 );
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -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 );
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue