fixed compilation of network simulator

git-svn-id: http://svn.code.sf.net/p/retroshare/code/branches/v0.5-GenericTunneling@6408 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
csoler 2013-06-05 19:54:34 +00:00
parent 182e536061
commit 900abd0f54
3 changed files with 3 additions and 2 deletions

View File

@ -4,7 +4,7 @@ class MonitoredTurtleRouter: public p3turtle
{ {
public: public:
MonitoredTurtleRouter(p3LinkMgr *lmgr,ftServer *fts) MonitoredTurtleRouter(p3LinkMgr *lmgr,ftServer *fts)
: p3turtle(lmgr,fts) : p3turtle(lmgr)
{ {
} }

View File

@ -172,7 +172,7 @@ void PeerNode::provideFileHash(const std::string& hash)
void PeerNode::manageFileHash(const std::string& hash) void PeerNode::manageFileHash(const std::string& hash)
{ {
_managed_hashes.insert(hash) ; _managed_hashes.insert(hash) ;
_turtle->monitorFileTunnels("file 1",hash,10000) ; _turtle->monitorTunnels(hash,_ftserver) ;
} }
void PeerNode::getTrafficInfo(NodeTrafficInfo& info) void PeerNode::getTrafficInfo(NodeTrafficInfo& info)

View File

@ -47,6 +47,7 @@ class PeerNode
private: private:
p3ServiceServer *_service_server ; p3ServiceServer *_service_server ;
MonitoredTurtleRouter *_turtle ; MonitoredTurtleRouter *_turtle ;
ftServer *_ftserver ;
std::string _id ; std::string _id ;
std::set<TurtleFileHash> _provided_hashes ; std::set<TurtleFileHash> _provided_hashes ;