mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-10 10:05:19 -04:00
added single function to call dht, with thread cleanup.
git-svn-id: http://svn.code.sf.net/p/retroshare/code/branches/v0.5-gxs-b1@5954 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
3be22536df
commit
62176264d3
5 changed files with 493 additions and 444 deletions
17
libbitdht/src/example/bootstrap_fn.h
Normal file
17
libbitdht/src/example/bootstrap_fn.h
Normal file
|
@ -0,0 +1,17 @@
|
|||
|
||||
#include <string>
|
||||
#include <inttypes.h>
|
||||
|
||||
|
||||
/* NOTE. At the moment only the bootstrapfile is actually used.
|
||||
* peerId is ignored (a random peerId is searched for). ip & port are not filled in either.
|
||||
*
|
||||
* This is mainly to finish testing.
|
||||
*
|
||||
* Once the best form of the return functions is decided (ipv4 structure, or strings).
|
||||
* this can be finished off.
|
||||
*
|
||||
*/
|
||||
|
||||
bool bdSingleShotFindPeer(const std::string bootstrapfile, const std::string peerId, std::string &ip, uint16_t &port);
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue