コード例 #1
0
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;
}
コード例 #2
0
int
TransportCacheManager::closeTransport (InetAddr& addr)
{
  LogDebug << "uncache transport for addr " << addr.getHostAddr() << ":" << addr.getPortNumber() << endl;
  this->mCacheMap.erase (addr);
  return 0;
}