Ejemplo n.º 1
0
void MFModel::updateVectorsWithOneTime(UserMap um){
    map<int, User*>::iterator umIter ;
    for(umIter = um.begin(); umIter != um.end(); umIter++){
        int userID = umIter->first;
        User *user = umIter->second;
        updateVectorsWithOneUser(userID, user);
    }
}
Ejemplo n.º 2
0
void
player_list(void)
{
	UserMap users;
	ServerPrx server;
	
	server = meta->getServer(serverId, ctx);
	users = server->getUsers(ctx);

	cout << "SID      Name    Ping" << endl;	
	for (UserMap::iterator ii=users.begin(); ii != users.end(); ii++)
		cout << setw(8) << right << (*ii).first << " " << (*ii).second.name << " " << (*ii).second.udpPing << endl;
}