Mangos源码分析
------realmd登陆服务器
Realmd主程序
/// Launch the realm server
int main(int argc, char **argv)
{
//输入参数分析,”-c”指定配置文件
//sConfig.SetSource(cfg_file),加载指定的配置文件
//进行版本号检查
///- Initialise the database connection
std::string dbstring;
if(!StartDB(dbstring))//初始化DB
///- Get the list of realms for the server
m_realmList.Initialize(sConfig.GetIntDefault("RealmsStateUpdateDelay", 20));//登陆服务器列表
SocketHandler h;
ListenSocket<AuthSocket> auth