Module: Torrenter
- Defined in:
- lib/torrenter.rb,
lib/torrenter/peer.rb,
lib/torrenter/reactor.rb,
lib/torrenter/tracker.rb,
lib/torrenter/version.rb,
lib/torrenter/constants.rb,
lib/torrenter/peer/seed.rb,
lib/torrenter/torrent_reader.rb,
lib/torrenter/peer/buffer_state.rb,
lib/torrenter/tracker/udp_tracker.rb,
lib/torrenter/torrent_reader/piece.rb,
lib/torrenter/tracker/http_tracker.rb,
lib/torrenter/torrent_reader/piece_index.rb,
lib/torrenter/torrent_reader/piece_constructor.rb
Defined Under Namespace
Classes: Peer, Reactor, Torrent, TorrentReader, Tracker
Constant Summary collapse
- VERSION =
'0.0.8'
- PEER_ID =
'-MATT16548651231825-'
- BLOCK =
2**14
- KEEP_ALIVE =
"\x00\x00\x00\x00"
- INTERESTED =
"\x01"
- HANDSHAKE =
"T"
- HAVE =
"\x04"
- BITFIELD =
"\x05"
- CANCEL =
"\b"
- PIECE =
"\a"
- CHOKE =
"\x00"
- PROTOCOL =
"\x13BitTorrent protocol\x00\x00\x00\x00\x00\x00\x00\x00"
- EXCEPTIONS =
[Errno::EADDRNOTAVAIL, Errno::ECONNREFUSED, Errno::EPIPE, Errno::ECONNRESET, IO::EAGAINWaitWritable]