mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-07-25 15:35:49 -04:00
Commit of the new UDP Connection methods and
the rewrite of the retroshare core networking stack. This check-in commits the changes to the dbase code. only minor changes: rename loadCache->loadLocalCache to avoid clash. switch to new monitoring system in cachestrapper. git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@307 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
6435357c07
commit
2780be3931
4 changed files with 16 additions and 10 deletions
|
@ -83,7 +83,7 @@ void CacheSource::unlockData()
|
|||
}
|
||||
|
||||
/* to be overloaded for inherited Classes */
|
||||
bool CacheSource::loadCache(const CacheData &data)
|
||||
bool CacheSource::loadLocalCache(const CacheData &data)
|
||||
{
|
||||
return refreshCache(data);
|
||||
}
|
||||
|
@ -450,6 +450,8 @@ void CacheStore::locked_storeCacheEntry(const CacheData &data)
|
|||
CacheStrapper::CacheStrapper(RsPeerId id, time_t period)
|
||||
:ownId(id), queryPeriod(period)
|
||||
{
|
||||
/* add OwnId */
|
||||
addPeerId(ownId);
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -460,8 +462,9 @@ void CacheStrapper::addCachePair(CachePair set)
|
|||
}
|
||||
|
||||
|
||||
/* from pqimonclient */
|
||||
void CacheStrapper::monUpdate(const std::list<pqipeer> &plist)
|
||||
/**************** from pqimonclient ********************/
|
||||
|
||||
void CacheStrapper::statusChange(const std::list<pqipeer> &plist)
|
||||
{
|
||||
std::list<pqipeer>::const_iterator it;
|
||||
std::map<RsPeerId, CacheTS>::iterator mit;
|
||||
|
@ -474,6 +477,8 @@ void CacheStrapper::monUpdate(const std::list<pqipeer> &plist)
|
|||
}
|
||||
}
|
||||
|
||||
/**************** from pqimonclient ********************/
|
||||
|
||||
|
||||
void CacheStrapper::addPeerId(RsPeerId pid)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue