Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EncodeByteString ¶
EncodeByteString Encodes a string to <key length>:<key>
func EncodeDictionary ¶
EncodeDictionary Takes a list of bencoded KVpairs and return a bencoded dictionary.
func EncodeList ¶
EncodeList encodes a list of items (`items`) to a bencoded list: "l<item1><item2><...><itemN>e"
func EncodePeerList ¶
EncodePeerList Handles peer list creation for non-compact responses. Mostly deprecated for most torrent clients nowadays as compact is the default. Returns a bencoded list of bencoded dictionaries containing "peer id", "ip", "port": "ld7:peer id20:<peer id>2:ip9:<127.0.0.1>4:port4:7878ee" peers contains a ip:port
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.