#include <RouteCache.h>
Public Member Functions | |
CRouteCache () | |
virtual | ~CRouteCache () |
void | SetDuration (DWORD nSeconds) |
BOOL | Add (const GGUID *pGUID, const CNeighbour *pNeighbour) |
BOOL | Add (const GGUID *pGUID, const SOCKADDR_IN *pEndpoint) |
void | Remove (CNeighbour *pNeighbour) |
void | Clear () |
CRouteCacheItem * | Add (const GGUID *pGUID, const CNeighbour *pNeighbour, const SOCKADDR_IN *pEndpoint, DWORD tAdded) |
CRouteCacheItem * | Lookup (const GGUID *pGUID, CNeighbour **ppNeighbour=NULL, SOCKADDR_IN *pEndpoint=NULL) |
Protected Attributes | |
DWORD | m_nSeconds |
CRouteCacheTable | m_pTable [2] |
CRouteCacheTable * | m_pRecent |
CRouteCacheTable * | m_pHistory |
|
Definition at line 45 of file RouteCache.cpp. References m_nSeconds, m_pHistory, m_pRecent, and m_pTable. |
|
Definition at line 52 of file RouteCache.cpp. |
|
Definition at line 110 of file RouteCache.cpp. References CRouteCacheTable::Add(), CRouteCacheTable::GetNextSize(), CRouteCacheTable::IsFull(), m_nSeconds, m_pHistory, m_pRecent, NULL, and CRouteCacheTable::Resize(). |
|
Definition at line 87 of file RouteCache.cpp. References CRouteCacheTable::Add(), CRouteCacheTable::GetNextSize(), CRouteCacheTable::IsFull(), Lookup(), m_nSeconds, m_pHistory, m_pRecent, NULL, and CRouteCacheTable::Resize(). |
|
Definition at line 65 of file RouteCache.cpp. References CRouteCacheTable::Add(), CRouteCacheTable::GetNextSize(), CRouteCacheTable::IsFull(), Lookup(), m_nSeconds, m_pHistory, m_pRecent, NULL, and CRouteCacheTable::Resize(). Referenced by CQueryHit::FromPacket(), Lookup(), CNeighbour::OnCommonHit(), CG2Neighbour::OnHAW(), CDatagrams::OnHit(), CG1Neighbour::OnPing(), CG2Neighbour::OnQuery(), CG1Neighbour::OnQuery(), CDatagrams::OnQuery(), and CG2Neighbour::SendHAW(). |
|
Definition at line 160 of file RouteCache.cpp. References CRouteCacheTable::Clear(), and m_pTable. Referenced by CNeighboursWithG1::Close(), CNetwork::Disconnect(), and SetDuration(). |
|
Definition at line 128 of file RouteCache.cpp. References Add(), CRouteCacheTable::Find(), CRouteCacheItem::m_pEndpoint, CRouteCacheItem::m_pGUID, m_pHistory, CRouteCacheItem::m_pNeighbour, m_pRecent, CRouteCacheItem::m_tAdded, and NULL. Referenced by Add(), CNetwork::GetNodeRoute(), CNeighboursWithG2::GetRandomHub(), CG1Neighbour::OnPong(), CG1Neighbour::OnPush(), CDatagrams::OnQueryAck(), and CNetwork::RouteHits(). |
|
Definition at line 154 of file RouteCache.cpp. References m_pTable, and CRouteCacheTable::Remove(). Referenced by CNeighboursWithG1::Remove(), and CNeighboursBase::Remove(). |
|
Definition at line 59 of file RouteCache.cpp. References Clear(), and m_nSeconds. Referenced by CNetwork::Connect(), and CNeighboursWithG1::Connect(). |
|
Definition at line 84 of file RouteCache.h. Referenced by Add(), CRouteCache(), and SetDuration(). |
|
Definition at line 87 of file RouteCache.h. Referenced by Add(), CRouteCache(), and Lookup(). |
|
Definition at line 86 of file RouteCache.h. Referenced by Add(), CRouteCache(), and Lookup(). |
|
Definition at line 85 of file RouteCache.h. Referenced by Clear(), CRouteCache(), and Remove(). |