Skip to content
Snippets Groups Projects
Unverified Commit 2fb8e1c7 authored by Adrien Béraud's avatar Adrien Béraud Committed by GitHub
Browse files

Update README.md

parent 4d689ef5
Branches
Tags
No related merge requests found
...@@ -51,7 +51,7 @@ int main() ...@@ -51,7 +51,7 @@ int main()
// Join the network through any running node, // Join the network through any running node,
// here using a known bootstrap node. // here using a known bootstrap node.
node.bootstrap("bootstrap.ring.cx", "4222"); node.bootstrap("bootstrap.jami.net", "4222");
// put some data on the dht // put some data on the dht
std::vector<uint8_t> some_data(5, 10); std::vector<uint8_t> some_data(5, 10);
...@@ -82,7 +82,7 @@ node.run() ...@@ -82,7 +82,7 @@ node.run()
# Join the network through any running node, # Join the network through any running node,
# here using a known bootstrap node. # here using a known bootstrap node.
node.bootstrap("bootstrap.ring.cx", "4222") node.bootstrap("bootstrap.jami.net", "4222")
# blocking call (provide callback arguments to make the call non-blocking) # blocking call (provide callback arguments to make the call non-blocking)
node.put(dht.InfoHash.get("unique_key"), dht.Value(b'some binary data')) node.put(dht.InfoHash.get("unique_key"), dht.Value(b'some binary data'))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment