void Pinger::newPingResultNoLockHelper(const wxIPV4address& ip, long duration) { wxString theip = ip.IPAddress(); wxLogDebug(_T("PING for %s is %ld"), theip.c_str(), duration); if(this->addresslist.find(theip) != this->addresslist.end()) { wxLogDebug(_T(" Found %d servers"), this->addresslist[theip].second.size()); for(serverlist_t::iterator i = this->addresslist[theip].second.begin(); i != this->addresslist[theip].second.end(); ++i) { this->updateAttribute(*i, this->lblping, Attribute<uint16_t>(duration)); } } else { wxLogDebug(_T("Response for a ping we don't care about?")); } }
wxString CreateIdent(const wxIPV4address& addr) { return wxString::Format(wxT("%s:%d"),addr.IPAddress().c_str(),addr.Service()); }