Class: Torrenter::Torrent
- Inherits:
-
Object
- Object
- Torrenter::Torrent
- Defined in:
- lib/torrenter.rb
Instance Method Summary collapse
Instance Method Details
#start(file) ⇒ Object
24 25 26 27 28 29 30 31 32 33 34 |
# File 'lib/torrenter.rb', line 24 def start(file) @torrent = Torrenter::TorrentReader.new(file) @torrent.write_paths trackers = @torrent.connect_trackers reactor = Reactor.new(trackers, @torrent.piece_index) reactor.extract_peers reactor. end |