| Class | Resolv::DNS::Resource::IN::SRV |
| In: |
resolv.rb
|
| Parent: | Resource |
SRV resource record defined in RFC 2782
These records identify the hostname and port that a service is available at.
The format is:
_Service._Proto.Name TTL Class SRV Priority Weight Port Target
The fields specific to SRV are defined in RFC 2782 as meaning:
| TypeValue | = | 33, ClassValue = ClassValue]] = self |
| port | [R] | |
| priority | [R] | |
| target | [R] | |
| weight | [R] |
# File resolv.rb, line 1701 def self.decode_rdata(msg) priority, = msg.get_unpack("n") weight, = msg.get_unpack("n") port, = msg.get_unpack("n") target = msg.get_name return self.new(priority, weight, port, target) end
ruby-doc.org is hosted and maintained by James Britt and Happy Camper Studios, a Ruby application development company in Phoenix, Arizona. The site was created in 2002 as part of the Ruby Documentation Project to promote the Ruby language and to help other Ruby hackers.
Documentation content on ruby-doc.org is provided by remarkable members of the Ruby community.
For more information on the Ruby programming language, visit ruby-lang.org.
Want to help improve Ruby's API docs? See Ruby Documentation Guidelines.