Skip to content

Commit

Permalink
Document the new interface.
Browse files Browse the repository at this point in the history
  • Loading branch information
Juliusz Chroboczek committed Nov 2, 2010
1 parent de3705c commit 3621775
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions README
Original file line number Diff line number Diff line change
Expand Up @@ -86,9 +86,8 @@ dht_periodic should be called if no data is available is returned in the
parameter tosleep. (You do not need to be particularly accurate; actually,
it is a good idea to be late by a random value.)

The parameter available indicates whether any data is available on the
socket. If it is 0, dht_periodic will not try to read data; if it is 1, it
will.
The parameters buf, buflen, from and fromlen optionally carry a received
message. If buflen is 0, then no message was received.

Dht_periodic also takes a callback, which will be called whenever something
interesting happens (see below).
Expand Down

0 comments on commit 3621775

Please sign in to comment.