Parent

Methods

Nmap::Parser::Host::ExtraPorts

This holds the information about "extra ports": groups of ports which have the same state.

Attributes

count[R]

Total number of ports in this state

state[R]

What state the ports are in

Public Class Methods

new(extraports) click to toggle source
# File lib/nmap/parser.rb, line 1072
def initialize(extraports)
        parse(extraports)
end

Public Instance Methods

<=>(extraports) click to toggle source

Compares the port counts

# File lib/nmap/parser.rb, line 1066
def <=>(extraports)
        @count <=> extraports.count
end
reasons() click to toggle source

Returns an array of arrays, each of which are in the form of:

<port count>, reason

for each set of reasons, and passes them each to a block if one is given

# File lib/nmap/parser.rb, line 1059
def reasons
        @reasons.each { |reason| yield reason } if block_given?

        @reasons
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.