Skip to content

Latest commit

 

History

History
34 lines (25 loc) · 717 Bytes

README.MD

File metadata and controls

34 lines (25 loc) · 717 Bytes

BTCodec KT

Bittorrent protocol encoder/decoder, in Kotlin.

References:

Usage

For repository url, please see ShinonomeTN Public Maven Repository

Maven:

<dependency>
    <groupId>com.shinonometn</groupId>
    <artifactId>btcodec-kt</artifactId>
    <version>1.1</version>
</dependency>

Gradle:

implementation("com.shinonometn:btcodec-kt:1.1")

Read bt protocol content

val decoder = BDecoder(FileInputStream("file.torrent"))
val value = decoder.nextValue()
println(value)