mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-08-05 04:44:19 -04:00
working on ft tests. Not finished yet
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@6034 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
2865ba30ce
commit
69859f2a43
13 changed files with 142 additions and 73 deletions
|
@ -52,14 +52,14 @@ class hubItem
|
|||
{
|
||||
public:
|
||||
hubItem()
|
||||
:mPQI(NULL), mConnMgr(NULL) { return; }
|
||||
:mPQI(NULL), mLinkMgr(NULL) { return; }
|
||||
|
||||
hubItem(std::string id, P3Pipe *pqi, p3ConnectMgr *mgr)
|
||||
:mPeerId(id), mPQI(pqi), mConnMgr(mgr) { return; }
|
||||
hubItem(std::string id, P3Pipe *pqi, p3LinkMgr *mgr)
|
||||
:mPeerId(id), mPQI(pqi), mLinkMgr(mgr) { return; }
|
||||
|
||||
std::string mPeerId;
|
||||
P3Pipe *mPQI;
|
||||
p3ConnectMgr *mConnMgr;
|
||||
p3LinkMgr *mLinkMgr;
|
||||
};
|
||||
|
||||
|
||||
|
@ -68,7 +68,7 @@ class P3Hub: public RsThread
|
|||
public:
|
||||
|
||||
P3Hub(uint32_t flags, RsSerialiser *rss);
|
||||
void addP3Pipe(std::string id, P3Pipe *, p3ConnectMgr *mgr);
|
||||
void addP3Pipe(std::string id, P3Pipe *, p3LinkMgr *mgr);
|
||||
|
||||
virtual void run();
|
||||
|
||||
|
@ -137,6 +137,11 @@ class P3Pipe: public P3Interface
|
|||
virtual RsFileCRC32Map* GetFileCRC32Map() ;
|
||||
virtual int SendFileCRC32Map(RsFileCRC32Map*) ;
|
||||
|
||||
virtual RsFileSingleChunkCrcRequest* GetFileSingleChunkCrcRequest() ;
|
||||
virtual int SendFileSingleChunkCrcRequest(RsFileSingleChunkCrcRequest*) ;
|
||||
virtual RsFileSingleChunkCrc* GetFileSingleChunkCrc() ;
|
||||
virtual int SendFileSingleChunkCrc(RsFileSingleChunkCrc*) ;
|
||||
|
||||
/* Lower Interface for PQIHub */
|
||||
|
||||
RsItem *PopSentItem();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue