From 77a387ade4aa2ed6d2be19fd322b7bdc22a6cc57 Mon Sep 17 00:00:00 2001 From: Volker Fischer Date: Sat, 9 Apr 2011 10:53:34 +0000 Subject: [PATCH] attached one message to the server list --- src/server.cpp | 4 ++++ src/server.h | 3 +++ 2 files changed, 7 insertions(+) diff --git a/src/server.cpp b/src/server.cpp index c20ebfbe..c51baae2 100755 --- a/src/server.cpp +++ b/src/server.cpp @@ -288,6 +288,10 @@ CServer::CServer ( const QString& strLoggingFileName, SIGNAL ( CLRegisterServerReceived ( CHostAddress, CServerCoreInfo ) ), this, SLOT ( OnCLRegisterServerReceived ( CHostAddress, CServerCoreInfo ) ) ); + QObject::connect ( &ConnLessProtocol, + SIGNAL ( CLReqServerList ( CHostAddress ) ), + this, SLOT ( OnCLReqServerList ( CHostAddress ) ) ); + QObject::connect ( &ConnLessProtocol, SIGNAL ( CLSendEmptyMes ( CHostAddress ) ), this, SLOT ( OnCLSendEmptyMes ( CHostAddress ) ) ); diff --git a/src/server.h b/src/server.h index e371d4bb..b037bca7 100755 --- a/src/server.h +++ b/src/server.h @@ -196,6 +196,9 @@ public slots: void OnCLSendEmptyMes ( CHostAddress TargetInetAddr ) { ConnLessProtocol.CreateCLEmptyMes ( TargetInetAddr ); } + void OnCLReqServerList ( CHostAddress InetAddr ) + { ServerListManager.QueryServerList ( InetAddr ); } + void OnCLRegisterServerReceived ( CHostAddress InetAddr, CServerCoreInfo ServerInfo ) {