removed p3portservice. Moved to unfinished/

git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@4504 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
csoler 2011-07-31 12:32:38 +00:00
parent 964f6ccac0
commit caaeda016d
2 changed files with 6 additions and 9 deletions

View File

@ -27,10 +27,8 @@
#include "services/p3portservice.h" #include "services/p3portservice.h"
#include "serialiser/rsserviceids.h" #include "serialiser/rsserviceids.h"
#include "pqi/p3linkmgr.h" p3PortService::p3PortService(p3ConnectMgr *cm)
:p3Service(RS_SERVICE_TYPE_PORT), mConnMgr(cm), mEnabled(false)
p3PortService::p3PortService(p3LinkMgr *lm)
:p3Service(RS_SERVICE_TYPE_PORT), mLinkMgr(lm), mEnabled(false)
{ {
/* For Version 1, we'll just use the very simple RsRawItem packets /* For Version 1, we'll just use the very simple RsRawItem packets
* which are handled in the RsServiceSerialiser * which are handled in the RsServiceSerialiser
@ -73,7 +71,7 @@ int p3PortService::tick()
* */ * */
/* input data TODO! */ /* input data TODO! */
void *data; void *data=NULL;
uint32_t len=0; uint32_t len=0;
uint32_t packetId = (((uint32_t) RS_PKT_VERSION_SERVICE) << 24) + uint32_t packetId = (((uint32_t) RS_PKT_VERSION_SERVICE) << 24) +

View File

@ -59,14 +59,13 @@
#include "serialiser/rsbaseitems.h" #include "serialiser/rsbaseitems.h"
#include "services/p3service.h" #include "services/p3service.h"
#include "pqi/p3connmgr.h"
class p3LinkMgr;
class p3PortService: public p3Service class p3PortService: public p3Service
{ {
public: public:
p3PortService(p3LinkMgr *lm); p3PortService(p3ConnectMgr *cm);
/* example setup functions */ /* example setup functions */
bool enablePortForwarding(uint32_t port, std::string peerId); bool enablePortForwarding(uint32_t port, std::string peerId);
@ -76,7 +75,7 @@ virtual int tick();
private: private:
p3LinkMgr *mLinkMgr; p3ConnectMgr *mConnMgr;
bool mEnabled; bool mEnabled;
bool mPeerOnline; bool mPeerOnline;