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

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.04   Source  

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.