Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/webtorrent/bittorrent-dht
/ functions
Functions
86 in github.com/webtorrent/bittorrent-dht
⨍
Functions
86
◇
Types & classes
2
↓ 108 callers
Method
destroy
(cb)
client.js:483
↓ 57 callers
Method
listen
(...args)
client.js:479
↓ 53 callers
Method
address
()
client.js:474
↓ 51 callers
Method
addNode
(node)
client.js:196
↓ 32 callers
Method
get
(key, opts, cb)
client.js:345
↓ 29 callers
Method
put
(opts, cb)
client.js:257
↓ 16 callers
Method
lookup
(infoHash, cb)
client.js:442
↓ 13 callers
Method
emit
(values, from)
client.js:458
↓ 12 callers
Method
_debug
()
client.js:700
↓ 11 callers
Method
announce
(infoHash, port, cb)
client.js:400
↓ 10 callers
Method
toJSON
()
client.js:238
↓ 6 callers
Method
_addPeer
(peer, infoHash, from)
client.js:574
↓ 5 callers
Function
toBuffer
(str)
client.js:791
↓ 4 callers
Method
_checkNodes
(nodes, force, cb)
client.js:169
↓ 4 callers
Method
_generateToken
(host, secret)
client.js:716
↓ 4 callers
Method
_pingAll
(cb)
client.js:147
↓ 4 callers
Method
updateBucketTimestamp
()
client.js:156
↓ 3 callers
Method
_closest
(target, message, onmessage, cb)
client.js:665
↓ 3 callers
Method
_sendPing
(node, cb)
client.js:217
↓ 3 callers
Function
encodeSigData
(msg)
client.js:778
↓ 3 callers
Function
send
(srci, dsti, value)
test/dht_store_mutable.js:472
↓ 2 callers
Method
_bootstrap
(populate)
client.js:644
↓ 2 callers
Method
_checkAndRemoveNodes
(nodes, cb)
client.js:160
↓ 2 callers
Method
_rotateSecrets
()
client.js:721
↓ 2 callers
Method
_validateToken
(host, token)
client.js:710
↓ 2 callers
Function
check
()
test/dht_store_mutable.js:542
↓ 2 callers
Function
createGetResponse
(id, token, value)
client.js:737
↓ 2 callers
Function
done
()
test/ping.js:28
↓ 2 callers
Function
kp
()
test/live/bep44.js:81
↓ 2 callers
Function
randomHost
()
test/common.js:10
↓ 2 callers
Function
randomId
()
test/common.js:22
↓ 2 callers
Function
randomPort
()
test/common.js:14
↓ 2 callers
Function
yetStillMore
()
test/dht_store_mutable.js:243
↓ 1 callers
Method
_onannouncepeer
(query, peer)
client.js:556
↓ 1 callers
Method
_onfindnode
(query, peer)
client.js:528
↓ 1 callers
Method
_onget
(query, peer)
client.js:579
↓ 1 callers
Method
_ongetpeers
(query, peer)
client.js:538
↓ 1 callers
Method
_onput
(query, peer)
client.js:596
↓ 1 callers
Method
_onquery
(query, peer)
client.js:500
↓ 1 callers
Method
_preannounce
(infoHash, port, cb)
client.js:432
↓ 1 callers
Method
_preput
(key, opts, cb)
client.js:328
↓ 1 callers
Method
_put
(opts, cb)
client.js:288
↓ 1 callers
Method
_setBucketCheckInterval
()
client.js:115
↓ 1 callers
Function
addEdges
()
test/dht_store_mutable.js:448
↓ 1 callers
Function
decodePeers
(buf)
client.js:755
↓ 1 callers
Function
encodePeer
(host, port)
client.js:747
↓ 1 callers
Function
findPeers
* Initialize [numInstances] dhts, have one announce an infoHash, and another perform a * lookup. Times out after a while.
test/horde.js:43
↓ 1 callers
Function
makeFriends
* Add every dht address to the dht "before" it. * This should guarantee that any dht can be located (with enough queries).
test/horde.js:88
↓ 1 callers
Function
parseIp
(buf, offset)
client.js:774
↓ 1 callers
Function
putSecondKey
()
test/dht_store_mutable.js:323
↓ 1 callers
Function
putSomethingElse
()
test/dht_store_mutable.js:225
↓ 1 callers
Function
randomAddr
()
test/common.js:18
↓ 1 callers
Function
ready
()
test/dht_store_mutable.js:23
↓ 1 callers
Method
removeBucketCheckInterval
()
client.js:151
↓ 1 callers
Method
removeNode
(id)
client.js:213
↓ 1 callers
Function
runAnnounceLookupTest
(numInstances)
test/horde.js:14
Function
addRandomNodes
(dht, num)
test/common.js:26
Function
addRandomPeers
(dht, num)
test/common.js:36
Method
bootstrap
()
client.js:98
Method
checkBucket
()
client.js:122
Method
constructor
(opts = {})
client.js:18
Method
done
(err)
client.js:370
Function
failOnWarningOrError
(t, dht)
test/common.js:5
Function
fill
(n, s)
test/common.js:42
Function
noop
()
client.js:731
Method
onerror
(err)
client.js:106
Method
onlistening
()
client.js:82
Method
onnode
(node)
client.js:110
Method
onquery
(query, peer)
client.js:90
Method
onreply
(message)
client.js:375
Method
onwarning
(err)
client.js:102
Function
ping
()
test/ping.js:20
Method
ping
(opts, cb)
client.js:65
Method
queueNext
()
client.js:140
Function
ready
()
test/to-json.js:66
Function
ready
()
test/put-get.js:21
Function
ready
()
test/dht_store_immutable.js:72
Function
ready
()
test/dht_test_vectors.js:28
Method
ready
()
client.js:656
Method
rotateSecrets
()
client.js:94
Function
sha1
(buf)
client.js:733
Function
sign
test/common.js:51
Function
sign
(buf)
test/dht_test_vectors.js:33
Function
sign
(buf)
test/live/bep44.js:44
Method
test
(acc)
client.js:174
Function
toNode
(node)
client.js:784