Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

iRajul/bencode

Open more actions menu

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
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

 
 
 

Contributors

Morty Proxy This is a proxified and sanitized view of the page, visit original site.