Object
Returns the number of OS class records
# File lib/nmap/parser.rb, line 1516 def class_count @osclasses.size end
Returns name of first OS match record, or Nth record as specified by index
# File lib/nmap/parser.rb, line 1558 def name(index = 0) (@osmatches[index.to_i] or return).name end
Returns the number of OS match records
# File lib/nmap/parser.rb, line 1552 def name_count @osmatches.size end
Returns an array of names from all OS records and yields them each to a block if one is given
# File lib/nmap/parser.rb, line 1570 def names() # :yields: name @osmatches.map do |match| yield match.name if block_given? match.name end end
Returns an array of OSClass objects and yields them each to a block if one is given
# File lib/nmap/parser.rb, line 1503 def osclasses @osclasses.each { |osclass| yield osclass } if block_given? @osclasses end
Returns an array of OSMatch objects and yields them each to a block if one is given
# File lib/nmap/parser.rb, line 1510 def osmatches @osmatches.each { |osmatch| yield osmatch } if block_given? @osmatches end
Returns the closed TCP port used for this OS Detection run
# File lib/nmap/parser.rb, line 1580 def tcpport_closed getportnum("tcp", "closed") end
Returns the open TCP port used for this OS Detection run
# File lib/nmap/parser.rb, line 1585 def tcpport_open getportnum("tcp", "open") end
Returns the closed UDP port used for this OS Detection run
# File lib/nmap/parser.rb, line 1590 def udpport_closed getportnum("udp", "closed") end
Disabled; run with --debug to generate this.
Generated with the Darkfish Rdoc Generator 1.1.6.