MCPcopy Create free account

hub / github.com/webtorrent/webtorrent / functions

Functions252 in github.com/webtorrent/webtorrent

↓ 2 callersMethod_updateWireWrapper
()
lib/torrent.js:1588
↓ 2 callersMethod_verifyPieces
* Verifies the pieces of the torrent, if a startup bitfield is provided it will be used for verification * @param {callbackWithError} cb * @priv
lib/torrent.js:827
↓ 2 callersFunctionaddWire
()
test/rarity-map.js:109
↓ 2 callersFunctionassertSelectionsEquals
* @param {import('tape').Test} t * @param {import('../../lib/selections.js').Selections} selections * @param {[number,number][]} expected
test/node/client-deselect.js:151
↓ 2 callersFunctionclose
()
test/node/server.js:26
↓ 2 callersFunctioncreateClient
(opts = {})
test/node/encryption.js:9
↓ 2 callersFunctionencodeRFC5987
(str)
lib/server.js:441
↓ 2 callersMethodget
* Returns the torrent with the given `torrentId`. Convenience method. Easier than * searching through the `client.torrents` array. Returns `null` i
index.js:237
↓ 2 callersMethodisOriginAllowed
(req)
lib/server.js:41
↓ 2 callersFunctionmaybeDone
()
test/node/download-tracker-torrent.js:86
↓ 2 callersFunctionmaybeDone
()
test/node/download-webseed-torrent.js:46
↓ 2 callersMethodnext
()
lib/file-iterator.js:40
↓ 2 callersMethodonRequest
(req, cb)
lib/server.js:172
↓ 2 callersFunctionremoveWire
(index)
test/rarity-map.js:116
↓ 2 callersMethodserveMethodNotAllowed
(res)
lib/server.js:52
↓ 2 callersMethodstartConnectTimeout
()
lib/peer.js:208
↓ 2 callersMethoduploadSpeed
()
lib/torrent.js:247
↓ 2 callersFunctionvalidateInitial
()
test/rarity-map.js:88
↓ 1 callersMethod_destroy
()
lib/file.js:187
↓ 1 callersMethod_getByHash
(infoHashHash)
index.js:550
↓ 1 callersMethod_getMetadataFromServer
()
lib/torrent.js:482
↓ 1 callersMethod_hasAllPieces
()
lib/torrent.js:896
↓ 1 callersMethod_hasNoPieces
()
lib/torrent.js:903
↓ 1 callersMethod_hotswap
* Attempts to cancel a slow block request from another wire such that the * given wire may effectively swap out the request for one of its own.
lib/torrent.js:1877
↓ 1 callersMethod_init
(url)
lib/webconn.js:32
↓ 1 callersMethod_markUnverified
* Mark one piece as unverified * @param {number} index * @private
lib/torrent.js:884
↓ 1 callersMethod_mergePriorityAndNotify
* Merges the priority and notify functions of two selection items. * @param {SelectionItem} newItem * @param {SelectionItem} existing
lib/selections.js:69
↓ 1 callersMethod_onListening
()
index.js:515
↓ 1 callersMethod_rechoke
* Called periodically to update the choked status of all peers, handling optimistic * unchoking as described in BEP3.
lib/torrent.js:1793
↓ 1 callersMethod_updateWire
* Attempts to update a peer's requests * @param {import('bittorrent-protocol').default} wire
lib/torrent.js:1602
↓ 1 callersMethod_validAddr
* Returns `true` if string is valid IPv4/6 address. * @param {string} addr * @return {boolean}
lib/torrent.js:2183
↓ 1 callersMethod_verifyPiece
* Verify a single piece using hashing * @param index * @param {verifyPieceCallback} cb * @private
lib/torrent.js:720
↓ 1 callersMethod_verifyPiecesUsingBitfield
* Verify pieces using bitfield, in case of in-congruences it will re-verify the file using hashing * @param {callbackWithError} cb * @private
lib/torrent.js:745
↓ 1 callersMethodaddWebSeed
(urlOrConn)
lib/torrent.js:1123
↓ 1 callersFunctioncheckState
(worker, controller)
test/browser/server.js:23
↓ 1 callersMethodconcatenate
(newItem)
lib/selections.js:85
↓ 1 callersMethodcritical
(start, end)
lib/torrent.js:1278
↓ 1 callersMethodgetFileModtimes
(cb)
lib/torrent.js:693
↓ 1 callersMethodhttpRequest
(pieceIndex, offset, length, cb)
lib/webconn.js:82
↓ 1 callersFunctionisFileList
* Check if `obj` is a W3C `FileList` object * @param {*} obj * @return {boolean}
index.js:582
↓ 1 callersFunctionisReadable
* Check if `obj` is a node Readable stream * @param {*} obj * @return {boolean}
index.js:573
↓ 1 callersMethodonHandshake
* Called when handshake is received from remote peer. * @param {string} infoHash * @param {string} peerId
lib/peer.js:165
↓ 1 callersFunctionrandomInt
* Returns a random integer in [0,high)
lib/torrent.js:2228
↓ 1 callersMethodserveFile
(file, req, res)
lib/server.js:110
↓ 1 callersMethodserveIndexPage
(res, torrents, pathname)
lib/server.js:18
↓ 1 callersMethodserveOptionsRequest
(req, res)
lib/server.js:99
↓ 1 callersMethodserveTorrentPage
(torrent, res, pathname)
lib/server.js:75
↓ 1 callersMethodsetThrottlePipes
()
lib/peer.js:135
↓ 1 callersMethodstartHandshakeTimeout
()
lib/peer.js:223
↓ 1 callersMethodswap
(i, j)
lib/selections.js:134
↓ 1 callersMethodthrottleDownload
* Set global download throttle rate. * @param {Number} rate (must be bigger or equal than zero, or -1 to disable throttling)
index.js:439
↓ 1 callersMethodthrottleUpload
* Set global upload throttle rate * @param {Number} rate (must be bigger or equal than zero, or -1 to disable throttling)
index.js:452
Method[Symbol.asyncIterator]
()
lib/file-iterator.js:36
Method[Symbol.asyncIterator]
(opts = {})
lib/file.js:97
Method[Symbol.iterator]
@returns {Generator<SelectionItem & {remove: function}>}
lib/selections.js:145
Method_numQueued
()
lib/torrent.js:260
Method_onseed
index.js:343
Method_peersLength
()
lib/torrent.js:209
Function_remove
()
test/rarity-map.js:21
Method_utpServer
()
index.js:546
Methodaddress
()
lib/server.js:410
Functionbinding
(name)
polyfills/process-fast.js:34
Methodblob
(opts)
lib/file.js:147
Functioncancel
()
lib/worker-server.js:10
Functionchdir
(dir)
polyfills/process-fast.js:35
Methodcleanup
()
lib/server.js:369
MethodcleanupPending
()
lib/conn-pool.js:178
MethodclearPipes
()
lib/peer.js:130
Methodclose
(cb = () => {})
lib/server.js:320
Methodclose
(cb)
lib/server.js:414
Methodconstructor
(opts = {})
index.js:49
Methodconstructor
* Start downloading a new torrent. * @param {string|ArrayBufferView|Object} torrentId * @param {import('../index.js').default} client * @para
lib/torrent.js:116
Methodconstructor
(client)
lib/conn-pool.js:20
Methodconstructor
(torrent)
lib/rarity-map.js:6
Methodconstructor
(file, { start, end })
lib/file-iterator.js:16
Methodconstructor
(id, type, secure = 0)
lib/peer.js:37
Methodconstructor
(client, opts = {})
lib/server.js:11
Methodconstructor
(client, opts)
lib/server.js:264
Methodconstructor
(client, opts)
lib/server.js:337
Methodconstructor
(url, torrent)
lib/webconn.js:22
Methodconstructor
(torrent, file)
lib/file.js:8
Methodconstructor
(wire)
test/node/extensions.js:10
Functioncwd
()
polyfills/process-fast.js:32
Methoddeselect
(start, end)
lib/torrent.js:1274
Methoddestroy
()
lib/rarity-map.js:60
Methoddestroy
(cb)
lib/server.js:328
Methoddestroy
(cb)
lib/server.js:419
Methoddestroy
()
lib/webconn.js:149
MethoddownloadSpeed
()
index.js:212
Methoddownloaded
()
lib/torrent.js:219
Methoddownloaded
()
lib/file.js:39
MethodgenPieceFilterFunc
(start, end, tried, rank)
lib/torrent.js:1655
FunctiongetDownloadPath
(infix, infoHash)
test/common.js:5
MethodgetMetadataFromURL
(url, cb)
lib/torrent.js:497
MethodgetPieceDownloaded
(pieceIndex)
lib/file.js:49
MethodgetPieceLength
(pieceIndex)
lib/file.js:45
MethodhandleRequest
()
lib/server.js:208
FunctioninflateSync
(buffer)
polyfills/inflate-sync-web.js:3
FunctionisIntersecting
(newItem, existing)
lib/selections.js:209
Methodlength
()
lib/selections.js:125
← previousnext →101–200 of 252, ranked by callers