Class: Nmap::Parser::Host::Port

Class | Nmap::Parser::Host::Port
In: | lib/nmap/parser.rb
Parent: | Object

This holds the information about an individual port or protocol

### Methods

<=> new script script_output scripts

### Classes and Modules

Class Nmap::Parser::Host::Port::Service

### Attributes

num | [R] | Port number
reason | [R] | Why the port is in the state
reason_ip | [R] | The host that responded, if different than the target
reason_ttl | [R] | TTL from the responding host
service | [R] | Service object for this port
state | [R] | Port state ("open", "closed", "filtered", etc)

### Public Class methods

new(portinfo)

### Public Instance methods

<=>(port)

Compares port numbers

script(name)

Returns the Script object with the specified `name`

script_output(name)

Returns the output of the script `name`

scripts() {|script| ...}

Returns an array of Script objects associated with this port, and passes them each to a block if one is given

[Validate]