Skip to content

iRajul/bencode

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Bencode

Bencode is is a fully featured, open source, c++ library used to encode and decode bencode data.

About

This project has been build for study purpose. I took help from here.

Build Library from Source

cd into bencode directory make 

It will build library intolib directory.

Documentation

Todo

Example Usage

int main( ) { ifstream iFile; iFile.open("sample1.torrent", std::ifstream::in); nBencode::decode decoder; shared_ptr<nBencode::CItem> pItem = decoder.decodeFile(iFile); //print bencode data in pretty format. shared_ptr<nBencode::CPrintPretty> print( new nBencode::CPrintPretty()); print->Print(pItem); return 0; } 

About

Bencode - C++ library for encoding and decoding bencode formatted data.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published