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 )
|
void OnCLReqServerList ( CHostAddress InetAddr )
|
||||||
{ ServerListManager.QueryServerList ( InetAddr ); }
|
{ ServerListManager.CentralServerQueryServerList ( InetAddr ); }
|
||||||
|
|
||||||
void OnCLRegisterServerReceived ( CHostAddress InetAddr,
|
void OnCLRegisterServerReceived ( CHostAddress InetAddr,
|
||||||
CServerCoreInfo ServerInfo )
|
CServerCoreInfo ServerInfo )
|
||||||
{
|
{
|
||||||
ServerListManager.RegisterServer ( InetAddr, ServerInfo );
|
ServerListManager.CentralServerRegisterServer ( InetAddr, ServerInfo );
|
||||||
}
|
}
|
||||||
|
|
||||||
void OnCLUnregisterServerReceived ( CHostAddress InetAddr )
|
void OnCLUnregisterServerReceived ( CHostAddress InetAddr )
|
||||||
{
|
{
|
||||||
ServerListManager.UnregisterServer ( InetAddr );
|
ServerListManager.CentralServerUnregisterServer ( InetAddr );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -243,7 +243,7 @@ void CServerListManager::OnTimerPollList()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void CServerListManager::RegisterServer ( const CHostAddress& InetAddr,
|
void CServerListManager::CentralServerRegisterServer ( const CHostAddress& InetAddr,
|
||||||
const CServerCoreInfo& ServerInfo )
|
const CServerCoreInfo& ServerInfo )
|
||||||
{
|
{
|
||||||
QMutexLocker locker ( &Mutex );
|
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 );
|
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 );
|
QMutexLocker locker ( &Mutex );
|
||||||
|
|
||||||
|
|
|
@ -143,12 +143,12 @@ public:
|
||||||
|
|
||||||
bool GetIsCentralServer() const { return bIsCentralServer; }
|
bool GetIsCentralServer() const { return bIsCentralServer; }
|
||||||
|
|
||||||
void RegisterServer ( const CHostAddress& InetAddr,
|
void CentralServerRegisterServer ( const CHostAddress& InetAddr,
|
||||||
const CServerCoreInfo& ServerInfo );
|
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
|
// set server infos -> per definition the server info of this server is
|
||||||
|
|
Loading…
Reference in a new issue