Class: Rex::Socket::Host
Overview
A single host
Instance Attribute Summary collapse
-
#hostname ⇒ Object
Returns the value of attribute hostname.
Attributes inherited from Range
Instance Method Summary collapse
- #address ⇒ Object
-
#initialize(address, hostname = nil, options = nil) ⇒ Host
constructor
A new instance of Host.
Methods inherited from Range
Constructor Details
#initialize(address, hostname = nil, options = nil) ⇒ Host
541 542 543 544 545 546 |
# File 'lib/rex/socket/range_walker.rb', line 541 def initialize(address, hostname=nil, =nil) address = Rex::Socket.addr_atoi(address) if address.is_a? String super(address, address, ) @hostname = hostname end |
Instance Attribute Details
#hostname ⇒ Object
Returns the value of attribute hostname.
539 540 541 |
# File 'lib/rex/socket/range_walker.rb', line 539 def hostname @hostname end |
Instance Method Details
#address ⇒ Object
548 549 550 |
# File 'lib/rex/socket/range_walker.rb', line 548 def address Rex::Socket.addr_itoa(@start) end |