Class: QuartzTorrent::UdpTrackerResponse
- Inherits:
-
Object
- Object
- QuartzTorrent::UdpTrackerResponse
- Defined in:
- lib/quartz_torrent/udptrackermsg.rb
Overview
Superclass for UDP tracker responses
Direct Known Subclasses
Instance Attribute Summary collapse
-
#action ⇒ Object
Get the action as an integer.
-
#connectionId ⇒ Object
ConnectionId as an integer.
-
#transactionId ⇒ Object
Get the transactionId as an integer.
Instance Method Summary collapse
-
#initialize ⇒ UdpTrackerResponse
constructor
A new instance of UdpTrackerResponse.
Constructor Details
#initialize ⇒ UdpTrackerResponse
Returns a new instance of UdpTrackerResponse.
88 89 90 91 92 |
# File 'lib/quartz_torrent/udptrackermsg.rb', line 88 def initialize @connectionId = nil @action = nil @transactionId = nil end |
Instance Attribute Details
#action ⇒ Object
Get the action as an integer. Should be one of the UdpTrackerMessage::Action* constants
97 98 99 |
# File 'lib/quartz_torrent/udptrackermsg.rb', line 97 def action @action end |
#connectionId ⇒ Object
ConnectionId as an integer
95 96 97 |
# File 'lib/quartz_torrent/udptrackermsg.rb', line 95 def connectionId @connectionId end |
#transactionId ⇒ Object
Get the transactionId as an integer
99 100 101 |
# File 'lib/quartz_torrent/udptrackermsg.rb', line 99 def transactionId @transactionId end |