mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-10-10 04:28:45 -04:00
Add second testing Simulator.
It has a number of PeerNodes, and captures traffic for examination. git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@7271 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
3a13b2ac65
commit
6be4a464a5
6 changed files with 599 additions and 0 deletions
27
tests/librssimulator/testing/SetPacket.h
Normal file
27
tests/librssimulator/testing/SetPacket.h
Normal file
|
@ -0,0 +1,27 @@
|
|||
#pragma once
|
||||
|
||||
#include "pqi/p3linkmgr.h" // for RsPeerId ??
|
||||
|
||||
#include <list>
|
||||
#include "retroshare/rsids.h"
|
||||
|
||||
class RsItem;
|
||||
|
||||
class SetPacket
|
||||
{
|
||||
public:
|
||||
SetPacket(double t, const RsPeerId &srcId,
|
||||
const RsPeerId &destId, RsItem *item)
|
||||
:mTime(t), mSrcId(srcId), mDestId(destId), mItem(item)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
SetPacket() :mTime(), mItem(NULL) { return; }
|
||||
|
||||
double mTime; // relative to test creation;
|
||||
RsPeerId mSrcId;
|
||||
RsPeerId mDestId;
|
||||
RsItem *mItem;
|
||||
};
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue