Class: Net::NATPMP::ExternalAddressRequest
- Defined in:
- lib/net/natpmp/requests.rb
Overview
Request class specific to External address
Constant Summary
Constants included from Constants
Constants::BASE_DELAY, Constants::DEFAULT_INSIDE_PORT, Constants::DEFAULT_LIFETIME, Constants::DEFAULT_OUTSIDE_PORT, Constants::DEFAULT_PROTO, Constants::MAX_WAIT, Constants::OP_CODES, Constants::PROTO_CODES, Constants::RESULT_CODES, Constants::RESULT_CODES_DESC, Constants::VERSION
Instance Attribute Summary
Attributes inherited from Request
Class Method Summary collapse
Methods inherited from Request
#check_reply, #initialize, #send
Constructor Details
This class inherits a constructor from Net::NATPMP::Request
Class Method Details
.req(config) ⇒ Object
81 82 83 84 85 86 |
# File 'lib/net/natpmp/requests.rb', line 81 def self.req(config) instance = super(config) msg = [VERSION, OP_CODES[:address]].pack('CC') ExternalAddressResponse.new(instance.send(msg, 12)) end |