初步修复
This commit is contained in:
parent
8fc4357cc6
commit
e4714f3f0e
46705 changed files with 12004901 additions and 0 deletions
32
Server/DNLogServer/DNConnectionManager.cpp
Normal file
32
Server/DNLogServer/DNConnectionManager.cpp
Normal file
|
|
@ -0,0 +1,32 @@
|
|||
#include "StdAfx.h"
|
||||
#include "DNConnectionManager.h"
|
||||
#include "DNConnection.h"
|
||||
#include "Util.h"
|
||||
|
||||
CDNConnectionManager* g_pConnectionManager = NULL;
|
||||
|
||||
CDNConnectionManager::CDNConnectionManager(void): CConnectionManager()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
CDNConnectionManager::~CDNConnectionManager(void)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
CConnection* CDNConnectionManager::AddConnection(const char *pIp, const USHORT nPort)
|
||||
{
|
||||
CDNConnection *pCon = new CDNConnection;
|
||||
if (!pCon) return NULL;
|
||||
|
||||
// ±×³É ¸¶½ºÅÍ Ä¿³Ø¼Ç ID¹ßÇà..
|
||||
pCon->SetSessionID(g_IDGenerator.GetMasterConnectionID());
|
||||
pCon->SetIp(pIp);
|
||||
pCon->SetPort(nPort);
|
||||
|
||||
PushConnection(pCon);
|
||||
|
||||
return pCon;
|
||||
}
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue