Collin Starkweather > Net-Peep-0.4.5.1 > Net::Peep::Host::Pool

Download:
Net-Peep-0.4.5.1.tar.gz

Dependencies

Annotate this POD

CPAN RT

New  1
Open  0
View Bugs
Report a bug
Module Version: 1.01   Source  

NAME ^

Net::Peep::Host::Pool - A pool, or group, of Net::Peep::Host objects

SYNOPSIS ^

  use Net::Peep::Host;

DESCRIPTION ^

A pool, or group, of Net::Peep::Host objects and associated methods for thier usage and manipulation.

EXPORT

METHODS

  new() - The constructor.

  addHost($host) - Adds the host $host (a Net::Peep::Host object) to
  the host pool.

  hosts($host) - Returns the array of hosts in the host pool.

  getHostByName($name) - Returns the host with name $name from the
  host pool.  If no host is found with that name, it returns undef.

  getHostByAddr($ip) - Returns the host with IP address $ip.  If no
  host is found with that address, it returns undef.

  addHosts($string) - Takes a comma-delimited string of IP addresses
  or host names, parses them, and adds them to the host pool.

  isInHostPool($string) - Takes a host name or IP address and checks
  whether it is in the host pool.

  areInHostPool(@strings) - Takes a list of host names and/or IP
  addresses and checks whether any of them are in the host pool.

AUTHOR ^

Collin Starkweather (C) 2001.

SEE ALSO ^

perl(1), Net::Peep, Net::Peep::Host.