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


Net-Peep documentation  | view source Contained in the Net-Peep distribution.

Index


NAME

Top

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

SYNOPSIS

Top

  use Net::Peep::Host;

DESCRIPTION

Top

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

Top

Collin Starkweather (C) 2001.

SEE ALSO

Top

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


Net-Peep documentation  | view source Contained in the Net-Peep distribution.