Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
opendht
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Model registry
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
savoirfairelinux
opendht
Commits
0a4195ae
Commit
0a4195ae
authored
9 years ago
by
Adrien Béraud
Browse files
Options
Downloads
Patches
Plain Diff
Update README.md
parent
aa08cf48
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
README.md
+1
-4
1 addition, 4 deletions
README.md
with
1 addition
and
4 deletions
README.md
+
1
−
4
View file @
0a4195ae
...
...
@@ -52,9 +52,6 @@ int main()
return
true
;
// return false to stop the search
});
// here we could wait for some operations to complete
// instead of ending now.
// wait for dht threads to end
node
.
join
();
return
0
;
...
...
@@ -73,7 +70,7 @@ r.bootstrap("bootstrap.ring.cx", "4222")
r
.
put
(
dht
.
InfoHash
.
get
(
"
unique_key
"
),
dht
.
Value
(
b
'
some binary data
'
))
# blocking call (provide
a get_cb and an optional done_cb
argument to make the call non-blocking)
# blocking call (provide
callback
argument
s
to make the call non-blocking)
results
=
r
.
get
(
dht
.
InfoHash
.
get
(
"
unique_key
"
))
for
r
in
results
:
print
(
r
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment