Class: Gem::Resolv::DNS::Resource::IN::WKS
Relationships & Source Files | |
Super Chains via Extension / Inclusion / Inheritance | |
Class Chain:
|
|
Instance Chain:
|
|
Inherits: |
Gem::Resolv::DNS::Resource
|
Defined in: | lib/rubygems/vendor/resolv/lib/resolv.rb |
Overview
Well Known Service resource.
Constant Summary
-
ClassValue =
# File 'lib/rubygems/vendor/resolv/lib/resolv.rb', line 2666IN::ClassValue
-
TypeValue =
# File 'lib/rubygems/vendor/resolv/lib/resolv.rb', line 266511
::Gem::Resolv::DNS::Resource
- Inherited
Class Method Summary
- .new(address, protocol, bitmap) ⇒ WKS constructor
- .decode_rdata(msg) Internal use only
::Gem::Resolv::DNS::Resource
- Inherited
::Gem::Resolv::DNS::Query
- Inherited
Instance Attribute Summary
-
#address
readonly
The host these services run on.
-
#bitmap
readonly
A
bit map of enabled services on this host. -
#protocol
readonly
IP protocol number for these services.
::Gem::Resolv::DNS::Resource
- Inherited
#ttl | Remaining Time To Live for this |
Instance Method Summary
- #encode_rdata(msg) Internal use only
::Gem::Resolv::DNS::Resource
- Inherited
::Gem::Resolv::DNS::Query
- Inherited
Constructor Details
.new(address, protocol, bitmap) ⇒ WKS
Class Method Details
.decode_rdata(msg)
This method is for internal use only.
[ GitHub ]
Instance Attribute Details
#address (readonly)
The host these services run on.
# File 'lib/rubygems/vendor/resolv/lib/resolv.rb', line 2678
attr_reader :address
#bitmap (readonly)
A
bit map of enabled services on this host.
If protocol is 6 (TCP) then the 26th bit corresponds to the SMTP service (port 25). If this bit is set, then an SMTP server should be listening on TCP port 25; if zero, SMTP service is not supported.
# File 'lib/rubygems/vendor/resolv/lib/resolv.rb', line 2693
attr_reader :bitmap
#protocol (readonly)
IP protocol number for these services.
# File 'lib/rubygems/vendor/resolv/lib/resolv.rb', line 2683
attr_reader :protocol
Instance Method Details
#encode_rdata(msg)
This method is for internal use only.
[ GitHub ]
# File 'lib/rubygems/vendor/resolv/lib/resolv.rb', line 2695
def encode_rdata(msg) # :nodoc: msg.put_bytes(@address.address) msg.put_pack("n", @protocol) msg.put_bytes(@bitmap) end