pike.git / lib / modules / Protocols.pmod / Bittorrent.pmod / Generator.pike

version» Context lines:

pike.git/lib/modules/Protocols.pmod/Bittorrent.pmod/Generator.pike:9:   //! g->add(f);   //!   //! string dest=am[-1];   //! if (-1==search(dest,"torrent")) dest+=".torrent";   //!   //! Stdio.write_file(dest,g->digest());   //! return 0;   //! }      #pike __REAL_VERSION__ + #require constant(Protocols.Bittorrent.Torrent)    - #if constant(.Torrent) -  +    inherit .Torrent;      string base=0;   int offset=0;   int piece_size=262144;   string announce="http://";   array(array(string)) announce_list=({});      //! @decl void create(void|string base, void|int piece_size)   //! Create a generator.
pike.git/lib/modules/Protocols.pmod/Bittorrent.pmod/Generator.pike:170: Inside #if constant(.Torrent)
   foreach (targets;;Target t)    info->info->files+=    ({(["length":t->length,    "path":t->path    // we might add md5 here too someday    ])});    }       return .Bencoding.encode(info);   } -  - #else /* !constant(.Torrent) */ -  - constant this_program_does_not_exist=1; -  - #endif /* constant(.Torrent) */ +