Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ibinti #1806

Closed
wants to merge 15 commits into from

Create index.kt

  • Loading branch information
ibinti committed Jan 10, 2020
commit b0c1e0c3ab418bf633a2385dbb5e6c5127e5351a
@@ -0,0 +1,50 @@
package kotorrent

/* global FileList */

val (_,EventEmitter) = require("events")
val concat = require("simple-concat")
val createTorrent = require("create-torrent")
val debug = require("debug")("webtorrent")
val DHT = require("bittorrent-dht/client") // browser exclude
val loadIPSet = require("load-ip-set") // browser exclude
val parallel = require("run-parallel")
val parseTorrent = require("parse-torrent")
val path = require("path")
val Peer = require("simple-peer")
val randombytes = require("randombytes")
val speedometer = require("speedometer")

val TCPPool = require("../lib/tcp-pool") // browser exclude
val Torrent = require("../lib/torrent")
val VERSION = require("../package.json").version

/**
* Version number in Azureus-style. Generated from major and minor semver version.
* For example:
* '0.16.1' -> '0016'
* '1.2.5' -> '0102'
*/
val VERSION_STR = version_azureus(VERSION)

/**
* Version prefix string (used in peer ID). WebTorrent uses the Azureus-style
* encoding: '-', two characters for client id ('WW'), four ascii digits for version
* number, '-', followed by random numbers.
* For example:
* '-WW0102-'...
*/
val VERSION_PREFIX = "-WW${VERSION_STR}-"

/**
* WebTorrent Client
* @param {Object=} opts
*/
@JsModule("../node_modules/events")
external abstract class EventEmitter(){}
class WebTorrent : EventEmitter {




}
ProTip! Use n and p to navigate between commits in a pull request.
You can’t perform that action at this time.