Decoder written in C for bencode