mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-12-15 10:54:22 -05:00
37 lines
642 B
C
37 lines
642 B
C
|
#pragma once
|
||
|
|
||
|
#include "gxs/rsgxsnetservice.h"
|
||
|
#include "FakeLinkMgr.h"
|
||
|
|
||
|
class FakeNxsNetMgr : public RsNxsNetMgr
|
||
|
{
|
||
|
|
||
|
public:
|
||
|
|
||
|
FakeNxsNetMgr(FakeLinkMgr *linkMgr)
|
||
|
:mLinkMgr(linkMgr) { return; }
|
||
|
|
||
|
const RsPeerId& getOwnId()
|
||
|
{
|
||
|
return mLinkMgr->getOwnId();
|
||
|
}
|
||
|
|
||
|
void getOnlineList(uint32_t serviceId, std::set<RsPeerId>& ssl_peers)
|
||
|
{
|
||
|
(void) serviceId;
|
||
|
|
||
|
std::list<RsPeerId> peerList;
|
||
|
mLinkMgr->getOnlineList(peerList);
|
||
|
|
||
|
std::list<RsPeerId>::const_iterator it;
|
||
|
for(it = peerList.begin(); it != peerList.end(); it++)
|
||
|
{
|
||
|
ssl_peers.insert(*it);
|
||
|
}
|
||
|
}
|
||
|
private:
|
||
|
|
||
|
FakeLinkMgr *mLinkMgr;
|
||
|
};
|
||
|
|