- ip2user[sip].login = login;
- ip2user[sip].user = user;
- ip2user[sip].protoVer = protoVer;
- ip2user[sip].port = sport;
+ std::pair<std::map<uint32_t, IA_USER>::iterator, bool> res;
+ res = ip2user.insert(std::make_pair(sip, IA_USER(login, user, sport, protoVer)));
+ it = res.first;