How to create / build / build completely without a p2p trace (peer-to-peer)?

How can I create / build / design a fully tracked distributed p2p network architecture (no queue)?

If I have seeds / peers with a static IP address and seeds / peers in different WANs .

I read about BTS and DHT

also i found:

File extensions Torrent

In the torrent dictionary without a tracker, the "announcement" key is missing. Instead, a tracker without a tracker has a “nodes” key. This key must be installed in the nearest nodes K in the routing table of the client generating the torrent. Alternatively, the key can be installed in a well-known good node, such as managed by a person who generates a torrent. Please do not automatically add “router.bittorrent.com” to torrent files or automatically add these node tables to client routing tables.

nodes = [["<host>", <port>], ["<host>", <port>], ...]

nodes = [["127.0.0.1", 6881], ["your.router.node", 4804]]

But I did not understand where I should execute flash (hard code) these IP addresses.

+6
source share
1 answer

I assume that you are asking is actually not enough to answer.

If your question is more "how can I instruct some specific client applications to join a common," fearless "swarm using known nodes?".

... then you must provide additional information about which client application you have in mind - and this will ultimately depend on the capabilities of this client application so that you can specify this.

If your question is more: "How to write your own client application that will load on known sites?"

... then, assuming you plan to use rasterbar libtorrent for this (which you noted, and this is the only one I used), you can, of course, do this by calling DHT-related methods: see http: // www.rasterbar.com/products/libtorrent/manual.html#start-dht-stop-dht-set-dht-settings-dht-state-is-dht-running

And it will be installed inside your C ++ or Python code, depending on how you download libtorrent.

Hope this helps.

+1
source

Source: https://habr.com/ru/post/923951/


All Articles