#include "LoginServ.h" //Called when a client connects to the login network server int LsClientConnected(GwClient* pClient) { ClientData myClient; memset(&myClient, 0, sizeof(ClientData)); myClient.myId=gLoginServer.mClientIds.GetFreeID(); pClient->externalId=myClient.myId; myClient.socketId=pClient->mySocket; myClient.updateConnection=true; typedef std::pair cdpair; gLoginServer.mClients.insert(cdpair(myClient.myId, myClient)); return 0; }