Torrent protocol messages encode/decode APIs written in Go lang.
Usage
DecodeMessage()
decodes raw byte buffer into one of the message data structures.EncodeMessage()
encodes message data structures into raw byte buffer.
-
Install packages:
go get github.com/swatkat/gotrntmessages
-
Import package in your source:
import ("github.com/swatkat/gotrntmessages")