The format Includes 4 data types:

  • string
  • integer
  • list
  • dictionary

 

A data in the format represented  as ASCII chars.

Inetger – i<decimal number>e. If number is 0, you must write it as i0e

String – <size>:<data>. For example 4:spam

List – l<content>e For example: l4:spami42ee (list of string “spam” and 42)

Dictionary – d<content>e  Content is key-value pair. Keys must be strings, but value should be an any bencode data type. For example, d3:bar4:spam3:fooi42ee (It means [(“bar”:”spam”),(“foo”:42)])

Last edited Apr 17, 2011 at 11:11 AM by EugeneMineev, version 2

Comments

No comments yet.