//遍历
map<string,CAgent>::iterator iter;
for(iter=m_AgentClients.begin();iter!=m_AgentClients.end(); ++iter){
if(iter->first=="8001"){
this->SendMsg(iter->second.pSocket,strMsg);//iter->first
}
}
//遍历
map<string,CAgent>::iterator iter;
for(iter=m_AgentClients.begin();iter!=m_AgentClients.end(); ++iter){
if(iter->first=="8001"){
this->SendMsg(iter->second.pSocket,strMsg);//iter->first
}
}