static void NewConnection(COMMANDMAN* pCm, HANDLE hTcpConn)
{
if(pCm->nState != CM_S_INIT)
{
exDestroyNetHandler(pCm->hActiveConn);
}
pCm->hActiveConn = hTcpConn;
exPrint("\n new admin connection arrive");
if(exSetTcpConUser(hTcpConn,&(pCm->netUser)) == EX_FAIL)
{
exPrint("\n activate admin connection fail");
}
else
{
exPrint("\n activate admin connection ok");
}
pCm->nState = CM_S_CONNFULL;
ResetTcpData(&(pCm->tcpDate));