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
Returns a new instance of Host.
543 544 545 546 547 548 |
# File 'lib/rex/socket/range_walker.rb', line 543 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.
541 542 543 |
# File 'lib/rex/socket/range_walker.rb', line 541 def hostname @hostname end |