mmick66 / KDBencoding

Decoder for the Bencoding format used in the BitTorrent protocol

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

KDBencoding

A simple Objective-C decoder for the Bencoding format used in the BitTorrent protocol http://en.wikipedia.org/wiki/Bencode

NSData* data = [NSData dataWithContentsOfFile:torrentFilePath];
if(!data) {
  // handle file not loaded error
}
KDBencodingParser* parser = [KDBencodingParser parserWithData:data];
if(!parser) {
  // handle parse error
}
NSLog(@"%@", parser.rootObject);

About

Decoder for the Bencoding format used in the BitTorrent protocol

License:Apache License 2.0


Languages

Language:Objective-C 100.0%