mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-10-01 02:35:48 -04:00
39 lines
628 B
C
39 lines
628 B
C
|
#pragma once
|
||
|
|
||
|
#include <list>
|
||
|
#include "retroshare/rsids.h"
|
||
|
#include "pqi/p3linkmgr.h"
|
||
|
|
||
|
class RsItem;
|
||
|
class PeerNode;
|
||
|
class RsSerialType;
|
||
|
class RsSerialiser;
|
||
|
|
||
|
class IsolatedServiceTester
|
||
|
{
|
||
|
public:
|
||
|
IsolatedServiceTester(RsPeerId ownId, std::list<RsPeerId> peers);
|
||
|
~IsolatedServiceTester();
|
||
|
|
||
|
void addSerialType(RsSerialType *st);
|
||
|
bool startup();
|
||
|
|
||
|
void notifyPeers();
|
||
|
bool bringOnline(std::list<RsPeerId> peers);
|
||
|
|
||
|
bool tick();
|
||
|
bool tickUntilPacket(int max_ticks);
|
||
|
|
||
|
RsItem *getPacket();
|
||
|
bool sendPacket(RsItem *);
|
||
|
|
||
|
PeerNode *getPeerNode() { return mNode; }
|
||
|
|
||
|
private:
|
||
|
PeerNode *mNode;
|
||
|
RsSerialiser *mRsSerialiser;
|
||
|
};
|
||
|
|
||
|
|
||
|
|