Exemple #1
0
        static void Main(string[] args)
        {
            FileStream file = new FileStream("test.torrent", FileMode.Open);

            DotTorrent.Torrent t1 = new DotTorrent.Torrent();
            Bencode            b  = new Bencode(file);

            b.Parse();
            b.createDotTorrent();
            b.display();
            b.t.display();
        }
Exemple #2
0
 public Bencode(FileStream _file)
 {
     file = _file;
     t    = new DotTorrent.Torrent();
 }