Class: Resolv::DNS::SvcParam::Port
Relationships & Source Files | |
Super Chains via Extension / Inclusion / Inheritance | |
Class Chain:
self,
::Resolv::DNS::SvcParam
|
|
Instance Chain:
self,
::Resolv::DNS::SvcParam
|
|
Inherits: |
Resolv::DNS::SvcParam
|
Defined in: | lib/resolv.rb |
Overview
“port” ::Resolv::DNS::SvcParam
– Port
for alternative endpoint
Constant Summary
-
KeyName =
# File 'lib/resolv.rb', line 1961:port
-
KeyNumber =
# File 'lib/resolv.rb', line 19623
::Resolv::DNS::SvcParam
- Inherited
Class Method Summary
-
.new(port) ⇒ Port
constructor
Initialize “port” ScvParam.
- .decode(msg) Internal use only
::Resolv::DNS::SvcParam
- Inherited
.key_name | Get the presentation name of the SvcParamKey. |
.key_number | Get the registered number of the SvcParamKey. |
Instance Attribute Summary
-
#port
readonly
Port
number.
Instance Method Summary
- #encode(msg) Internal use only
Constructor Details
.new(port) ⇒ Port
Initialize “port” ScvParam.
Class Method Details
.decode(msg)
This method is for internal use only.
[ GitHub ]
Instance Attribute Details
#port (readonly)
Port
number.
# File 'lib/resolv.rb', line 1968
attr_reader :port
Instance Method Details
#encode(msg)
This method is for internal use only.
[ GitHub ]
# File 'lib/resolv.rb', line 1977
def encode(msg) # :nodoc: msg.put_pack('n', @port) end