Class: QuartzTorrent::UdpTrackerResponse

Inherits:
Object
  • Object
show all
Defined in:
lib/quartz_torrent/udptrackermsg.rb

Overview

Superclass for UDP tracker responses

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeUdpTrackerResponse

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

#actionObject

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

#connectionIdObject

ConnectionId as an integer



95
96
97
# File 'lib/quartz_torrent/udptrackermsg.rb', line 95

def connectionId
  @connectionId
end

#transactionIdObject

Get the transactionId as an integer



99
100
101
# File 'lib/quartz_torrent/udptrackermsg.rb', line 99

def transactionId
  @transactionId
end