void NFCLoginNet_ServerModule::OnClientConnected(const int nAddress) { NetObject* pObject = GetNet()->GetNetObject(nAddress); if (pObject) { NFIDENTID xIdent =m_pUUIDModule->CreateGUID(); pObject->SetClientID(xIdent); mxClientIdent.AddElement(xIdent, NF_SHARE_PTR<int> (NF_NEW int(nAddress)) ); } }
void NFCProxyServerNet_ServerModule::OnClientConnected(const int nAddress) { NFGUID xClientIdent = m_pUUIDModule->CreateGUID(); NetObject* pNetObject = m_pNetModule->GetNet()->GetNetObject(nAddress); if (pNetObject) { pNetObject->SetClientID(xClientIdent); } mxClientIdent.AddElement(xClientIdent, NF_SHARE_PTR<int>(new int(nAddress))); }