Tom Scanlan > NetworkInfo-Discovery-0.12 > NetworkInfo::Discovery::Detect

Download:
NetworkInfo-Discovery-0.12.tar.gz

Dependencies

Annotate this POD

View/Report Bugs
Source  

NAME ^

NetworkInfo::Discovery::Detect - Super Class for all detection modules

SYNOPSIS ^

    See NetworkInfo::Discovery::(Sniff|Traceroute|Scan)
    for examples.

DESCRIPTION ^

NetworkInfo::Discovery::Detect is set up to be the super class of all the detection modules. It sets up the methods for setting and getting the discovered information about interfaces, gateways, and subnets.

METHODS ^

new

just set up lists for holding interfaces, subnets, and gateways

do_it

this needs to be implemented in the subclass. it should do what ever it does to detect interfaces, gateways, or subnets adding them to our lists by using the add_* methods below.

get_interfaces
get_gateways
get_subnets

returns a list of hash references for interfaces, gateways, or subnets.

add_interface ($hashref)
add_gateway ($hashref)
add_subnet ($hashref)

adds the hash ref to the list of interfaces, gateways, or subnets.

AUTHOR ^

Tom Scanlan <tscanlan@they.gotdns.org>

SEE ALSO ^

NetworkInfo::Discovery::Sniff

NetworkInfo::Discovery::Traceroute

NetworkInfo::Discovery::Scan

BUGS ^

Please send any bugs to Tom Scanlan <tscanlan@they.gotdns.org>

syntax highlighting: