Class: QuartzTorrent::Interested
- Inherits:
-
PeerWireMessage
- Object
- PeerWireMessage
- QuartzTorrent::Interested
- Defined in:
- lib/quartz_torrent/peermsg.rb
Overview
Interested message. Sent to tell peer we are interested in some piece they have.
Constant Summary
Constants inherited from PeerWireMessage
PeerWireMessage::MessageBitfield, PeerWireMessage::MessageCancel, PeerWireMessage::MessageChoke, PeerWireMessage::MessageExtended, PeerWireMessage::MessageHave, PeerWireMessage::MessageInterested, PeerWireMessage::MessageKeepAlive, PeerWireMessage::MessagePiece, PeerWireMessage::MessageRequest, PeerWireMessage::MessageUnchoke, PeerWireMessage::MessageUninterested
Instance Attribute Summary
Attributes inherited from PeerWireMessage
Instance Method Summary collapse
-
#initialize ⇒ Interested
constructor
A new instance of Interested.
- #payloadLength ⇒ Object
- #unserialize(payload) ⇒ Object
Methods inherited from PeerWireMessage
Constructor Details
#initialize ⇒ Interested
Returns a new instance of Interested.
171 172 173 |
# File 'lib/quartz_torrent/peermsg.rb', line 171 def initialize super(MessageInterested) end |
Instance Method Details
#payloadLength ⇒ Object
174 175 176 |
# File 'lib/quartz_torrent/peermsg.rb', line 174 def payloadLength 0 end |
#unserialize(payload) ⇒ Object
177 178 |
# File 'lib/quartz_torrent/peermsg.rb', line 177 def unserialize(payload) end |