mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-07-25 15:35:49 -04:00
* Removed old DHT Code, removed other references too.
* Added interface class to bitDHT. (p3bitdht.h) * Added Optional section in libretroshare.pro git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@3296 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
de57423733
commit
4157aff291
25 changed files with 466 additions and 4645 deletions
|
@ -122,5 +122,39 @@ virtual bool addStun(std::string id) = 0;
|
|||
pqiConnectCb *mConnCb;
|
||||
};
|
||||
|
||||
|
||||
#if 0
|
||||
|
||||
class pqiNetAssistConnectBitDht: public pqiNetAssist
|
||||
{
|
||||
/*
|
||||
*/
|
||||
public:
|
||||
pqiNetAssistConnectBitDht(std::string id, pqiConnectCb *cb)
|
||||
:mPeerId(id), mConnCb(cb) { return; }
|
||||
|
||||
/********** External DHT Interface ************************
|
||||
* These Functions are the external interface
|
||||
* for the DHT, and must be non-blocking and return quickly
|
||||
*/
|
||||
|
||||
/* add / remove peers */
|
||||
virtual bool findPeer(std::string id) = 0;
|
||||
virtual bool dropPeer(std::string id) = 0;
|
||||
|
||||
/* extract current peer status */
|
||||
virtual bool getPeerStatus(std::string id, struct sockaddr_in &raddr,
|
||||
uint32_t &mode) = 0;
|
||||
|
||||
virtual bool getExternalInterface(struct sockaddr_in &raddr,
|
||||
uint32_t &mode) = 0;
|
||||
|
||||
protected:
|
||||
std::string mPeerId;
|
||||
pqiConnectCb *mConnCb;
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
#endif /* MRK_PQI_ASSIST_H */
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue