-
Notifications
You must be signed in to change notification settings - Fork 1
thor.js API
creates new instance of thor
The address
refers to signalling server address and enable_server
is a boolean value
starts thor object. will login once connection is established
connects to user with username name
sets pagewise mode with infohash as infoHash
seeds an already existing file blob
with info hash infoHash
decides how to response to signaling server when message
received
generates 20 chracter random user name
sends login message to server
captures user name is sucess
is true else display failure message
Sends seeds/request message to tracker server for every file in file dictionary. If pagewise mode, then sends pagewise data also
runs control loop
responds to offer
received from peer with name name
responds to answer
received from peer name
responds to candidate
request from peer name
reacts to response received from server as answer