The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

Net::Peep::Host - The Peep host object

SYNOPSIS

  use Net::Peep::Host;

DESCRIPTION

The Peep host object. Used to characterize a host, including attributes such as hostname and IP address.

EXPORT

METHODS

  new() - The constuctor.

  name([$name]) - Sets or gets the hostname of the host object.  If no
  hostname has been previously specified, it tries to retreive the
  hostname through the IP address returned by the ip() method.

  ip([$ip]) - Sets or gets the IP address of the host object.  If no IP
  address has been previously specified, it tries to retreive the IP
  address through the hostname returned by the name() method.

  isIP($ip) - Returns 1 if $ip is an IP address, 0 otherwise.  The
  determination is made by pattern matching..

AUTHOR

Collin Starkweather (C) 2001.

SEE ALSO

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