Class: Resolv::DNS::Resource::IN::WKS
- Inherits:
-
Resolv::DNS::Resource
- Object
- Query
- Resolv::DNS::Resource
- Resolv::DNS::Resource::IN::WKS
- Defined in:
- lib/logstash/patches/resolv_9270.rb
Overview
Well Known Service resource.
Constant Summary collapse
- TypeValue =
11
- ClassValue =
IN::ClassValue
Constants inherited from Resolv::DNS::Resource
ClassHash, ClassInsensitiveTypes
Instance Attribute Summary collapse
-
#address ⇒ Object
readonly
The host these services run on.
-
#bitmap ⇒ Object
readonly
A bit map of enabled services on this host.
-
#protocol ⇒ Object
readonly
IP protocol number for these services.
Attributes inherited from Resolv::DNS::Resource
Class Method Summary collapse
-
.decode_rdata(msg) ⇒ Object
:nodoc:.
Instance Method Summary collapse
-
#encode_rdata(msg) ⇒ Object
:nodoc:.
-
#initialize(address, protocol, bitmap) ⇒ WKS
constructor
A new instance of WKS.
Methods inherited from Resolv::DNS::Resource
Constructor Details
Instance Attribute Details
#address ⇒ Object (readonly)
The host these services run on.
2228 2229 2230 |
# File 'lib/logstash/patches/resolv_9270.rb', line 2228 def address @address end |
#bitmap ⇒ Object (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.
2243 2244 2245 |
# File 'lib/logstash/patches/resolv_9270.rb', line 2243 def bitmap @bitmap end |
#protocol ⇒ Object (readonly)
IP protocol number for these services.
2233 2234 2235 |
# File 'lib/logstash/patches/resolv_9270.rb', line 2233 def protocol @protocol end |
Class Method Details
Instance Method Details
#encode_rdata(msg) ⇒ Object
:nodoc:
2245 2246 2247 2248 2249 |
# File 'lib/logstash/patches/resolv_9270.rb', line 2245 def encode_rdata(msg) # :nodoc: msg.put_bytes(@address.address) msg.put_pack("n", @protocol) msg.put_bytes(@bitmap) end |