Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/PearInc/PearDownloader.js
/ functions
Functions
77 in github.com/PearInc/PearDownloader.js
⨍
Functions
77
◇
Types & classes
0
↓ 4 callers
Function
onUpdateTick
()
src/lib/torrent.js:1564
↓ 3 callers
Function
chenkDone
()
src/node-filter.js:65
↓ 3 callers
Function
getBlockPipelineLength
(wire, duration)
src/lib/torrent.js:1740
↓ 3 callers
Function
getPageHTML
(title, pageHtml)
src/lib/server.js:219
↓ 3 callers
Function
updateSeedStatus
()
src/lib/torrent.js:1055
↓ 2 callers
Function
genPieceFilterFunc
(start, end, tried, rank)
src/lib/torrent.js:1212
↓ 2 callers
Function
handleRequest
()
src/lib/server.js:123
↓ 2 callers
Function
isOriginAllowed
(req)
src/lib/server.js:46
↓ 2 callers
Function
onResponse
(res, data)
src/lib/webconn.js:127
↓ 2 callers
Function
serve404Page
()
src/lib/server.js:153
↓ 2 callers
Function
serveMethodNotAllowed
()
src/lib/server.js:208
↓ 2 callers
Function
shufflePriority
(i)
src/lib/torrent.js:1283
↓ 2 callers
Function
trySelectWire
(hotswap)
src/lib/torrent.js:1293
↓ 1 callers
Function
_onseed
(torrent)
src/pear-torrent.js:369
↓ 1 callers
Function
cleanupPending
()
src/lib/tcp-pool.js:119
↓ 1 callers
Function
encodeRFC5987
(str)
src/lib/server.js:227
↓ 1 callers
Function
getBrowserRTC
()
src/simple-RTC.js:274
↓ 1 callers
Function
getBrowserRTC
()
src/worker.js:730
↓ 1 callers
Function
getMetadataFromURL
(url, cb)
src/lib/torrent.js:394
↓ 1 callers
Function
getPiecePipelineLength
(wire, duration, pieceLength)
src/lib/torrent.js:1744
↓ 1 callers
Function
isFileList
* Check if `obj` is a W3C `FileList` object * @param {*} obj * @return {boolean}
src/pear-torrent.js:479
↓ 1 callers
Function
isReadable
* Check if `obj` is a node Readable stream * @param {*} obj * @return {boolean}
src/pear-torrent.js:470
↓ 1 callers
Function
makeCandidateArr
(sdp)
src/worker.js:740
↓ 1 callers
Function
noop
()
src/file-stream.js:128
↓ 1 callers
Function
randomInt
* Returns a random integer in [0,high)
src/lib/torrent.js:1751
↓ 1 callers
Function
ready
()
src/pear-torrent.js:163
↓ 1 callers
Function
serveFile
(file)
src/lib/server.js:161
↓ 1 callers
Function
serveIndexPage
()
src/lib/server.js:137
↓ 1 callers
Function
serveOptionsRequest
()
src/lib/server.js:104
↓ 1 callers
Function
speedRanker
()
src/lib/torrent.js:1253
↓ 1 callers
Function
validateWire
()
src/lib/torrent.js:1219
Function
Dispatcher
(config)
src/dispatcher.js:30
Function
File
(dispatcher, file)
src/file.js:18
Function
File
(torrent, file)
src/lib/file.js:16
Function
FileStream
* Readable stream of a torrent file * * @param {File} file * @param {Object} opts * @param {number} opts.start stream slice of file, starting from
src/file-stream.js:17
Function
FileStream
* Readable stream of a torrent file * * @param {File} file * @param {Object} opts * @param {number} opts.start stream slice of file, starting from
src/lib/file-stream.js:17
Function
HttpDownloader
(uri, type, opts)
src/http-downloader.js:15
Function
NodeFilter
(nodesArray, cb, range)
src/node-filter.js:15
Function
PearDownloader
(urlStr, token, opts)
src/index.downloader.js:14
Function
Peer
* Peer. Represents a peer in the torrent swarm. * * @param {string} id "ip:port" string, peer id (for WebRTC peers), or url (for Web Seeds) * @para
src/lib/peer.js:79
Function
RTCDownloader
(config)
src/webrtc-downloader-bin.js:23
Function
RarityMap
* Mapping of torrent pieces to their respective availability in the torrent swarm. Used * by the torrent manager for implementing the rarest piece fi
src/lib/rarity-map.js:7
Function
Server
(torrent, opts)
src/lib/server.js:10
Function
Set
()
src/set.js:7
Function
SimpleRTC
(config)
src/simple-RTC.js:20
Function
TCPPool
* TCPPool * * A "TCP pool" allows multiple swarms to listen on the same TCP port and determines * which swarm incoming connections are intended for
src/lib/tcp-pool.js:18
Function
Torrent
(torrentId, client, opts)
src/lib/torrent.js:66
Function
Validator
(torrent)
src/piece-validator.js:13
Function
WebConn
* Converts requests for torrent blocks into http range requests. * @param {string} url web seed url * @param {Object} torrent
src/lib/webconn.js:20
Function
WebTorrent
* WebTorrent Client * @param {Object=} opts
src/pear-torrent.js:56
Function
Worker
(urlStr, token, opts)
src/worker.js:33
Function
connectTest
(node)
src/node-filter.js:39
Function
finalyReportTraffic
(uuid, fileSize, traffics)
src/reporter.js:40
Function
noop
()
src/dispatcher.js:726
Function
noop
()
src/lib/tcp-pool.js:128
Function
noop
()
src/lib/torrent.js:1755
Function
noop
()
src/lib/peer.js:245
Function
onChokeTimeout
()
src/lib/torrent.js:1042
Function
onClose
()
src/pear-torrent.js:287
Function
onConnection
(socket)
src/lib/server.js:61
Function
onDHTAnnounce
()
src/lib/torrent.js:365
Function
onError
(err)
src/lib/torrent.js:350
Function
onHandshake
(infoHash, peerId)
src/lib/tcp-pool.js:103
Function
onInfoHash
()
src/pear-torrent.js:270
Function
onPeer
(peer)
src/lib/torrent.js:354
Function
onReady
()
src/pear-torrent.js:281
Function
onReady
()
src/lib/server.js:118
Function
onRequest
(req, res)
src/lib/server.js:69
Function
onResponse
(err, res, torrent)
src/lib/torrent.js:417
Function
onTorrent
(torrent)
src/pear-torrent.js:351
Function
onTrackerAnnounce
()
src/lib/torrent.js:360
Function
onWarning
(err)
src/lib/torrent.js:370
Function
peerId
()
src/peerid-generator.js:3
Function
rechokeSort
(peerA, peerB)
src/lib/torrent.js:1398
Function
reportAbilities
(abilities)
src/reporter.js:58
Function
reportTraffic
(uuid, fileSize, traffics)
src/reporter.js:15
Function
trueFn
()
src/lib/rarity-map.js:119