GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
Nmap::Scanner::Backend::Results(3) User Contributed Perl Documentation Nmap::Scanner::Backend::Results(3)

This class holds the results from a scan. Results include a host list (Nmap::Scanner::HostList) instance and an instance of Nmap::Scanner::NmapRun, which contains information about the scan. There are several methods in this class used by the scanner to populate the result set; the only three that will be of interest to most programmers are:

Returns an instance of Nmap::Scanner::HostList that can be iterated through to get the host objects found by the search.

Example (Assumes scanner instance is named $scanner):

my $results = $scanner->scan();

my $host_list = $results->get_host_list();

while (my $host = $host_list->get_next()) {

    print "Found host named: " . $host->hostname() . "\n";
    .. etc ..

}

Returns the results as a well-formed XML document.

Example (Assumes scanner instance is named $scanner):

my $results = $scanner->scan();

print $results->as_xml();

Returns the Nmap::Scanner::NmapRun instance with information about the scan itself.

See the examples/ directory in the distribution for more examples.

2004-03-01 perl v5.32.1

Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.