int TransportCacheManager::cacheTransport (InetAddr& addr, IcmTransport* transport) { LogDebug << "cache transport for addr " << addr.getHostAddr() << ":" << addr.getPortNumber() << endl; this->mCacheMap.insert (std::make_pair (addr, transport)); return 0; }
int TransportCacheManager::closeTransport (InetAddr& addr) { LogDebug << "uncache transport for addr " << addr.getHostAddr() << ":" << addr.getPortNumber() << endl; this->mCacheMap.erase (addr); return 0; }