mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-17 21:40:36 -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
|
@ -146,7 +146,7 @@ virtual bool cachesAvailable(RsPeerId pid, std::map<CacheId, CacheData> &ids);
|
|||
* configuration file....
|
||||
* to be overloaded by inherited class
|
||||
*/
|
||||
virtual bool loadCache(const CacheData &data);
|
||||
virtual bool loadLocalCache(const CacheData &data);
|
||||
|
||||
/* control Caches available */
|
||||
bool refreshCache(const CacheData &data);
|
||||
|
@ -271,16 +271,17 @@ class CacheTS
|
|||
time_t answer;
|
||||
};
|
||||
|
||||
#include "pqi/pqimon.h"
|
||||
#include "pqi/pqimonitor.h"
|
||||
|
||||
class CacheStrapper: public pqimonclient
|
||||
class CacheStrapper: public pqiMonitor
|
||||
{
|
||||
public:
|
||||
CacheStrapper(RsPeerId id, time_t period);
|
||||
virtual ~CacheStrapper() { return; }
|
||||
|
||||
/* from pqimonclient */
|
||||
virtual void monUpdate(const std::list<pqipeer> &plist);
|
||||
/************* from pqiMonitor *******************/
|
||||
virtual void statusChange(const std::list<pqipeer> &plist);
|
||||
/************* from pqiMonitor *******************/
|
||||
|
||||
void addCachePair(CachePair pair);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue