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.

METHODS

new

just set up our hostlist and hoplist

do_it

this needs to be implemented in the subclass. it should do what ever it does to detect hosts, adding them and hops to $self->{'hostlist'} and to $self->{'hoplist'}.

get_hosts

returns the host list. each host in the list is a NetworkInfo::Discovery::Host object.

get_hops

returns the hop list. a hop is a reference to an array like [$host1, $host2, $latency, $bandwidth]. $host1 and $host2 are actual Host objects. $latency and $bandwidth are just that between the hosts, and are optional.

add_host ($host)

adds $host to the host list.

add_hop ($hop)

adds $hop to the hoplist. a hop is a reference to an array like [$host1, $host2, $latency, $bandwidth]. $host1 and $host2 are actual Host objects. $latency and $bandwidth are just that between the hosts, and are optional.

AUTHOR

Tom Scanlan <tscanlan@they.gotdns.org>

SEE ALSO

NetworkInfo::Discovery::Host

NetworkInfo::Discovery::Sniff

NetworkInfo::Discovery::Traceroute

NetworkInfo::Discovery::Scan

BUGS

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