Daniel Muey

NAME

IO::Socket::PortState::cPanel - Perl extension for checking if all the ports a cPanel server uses is open.

SYNOPSIS

  use IO::Socket::PortState::cPanel qw(check_inbound);
  my $hr = check_inbound($host,$timeout);

DESCRIPTION

Simplify IO::Socket::PortState use with cPanel servers. (http://cpanel.net/)

$inbound

Hashref of inbound ports suitable for use with IO::Socket::PortState::check_ports()

$outbound

Hashref of outbound ports suitable for use with IO::Socket::PortState::check_ports()

This would only make sense if you were running this check on the server that you were checking outbound ports on and use a host that does have those ports open :)

check_ports()

Its IO::Socket::PortState::check_ports()

check_inbound()

Shortcut to check_ports() but uses the $inbound for the hashref.

These are identicle:

   my $hr = check_inbound($host, $timeout, [\&handler]);
   my $hr = check_ports($host, $timeout, $inbound, [\&handler]);

check_outbound()

Shortcut to check_ports() but uses the $outbound for the hashref.

These are identicle:

   my $hr = check_outbound($host, $timeout, [\&handler]);
   my $hr = check_ports($host, $timeout, $outbound, [\&handler]);

EXPORT

None by default. check_inbound check_outbound check_ports $inbound $outbound are all exportable.

SOURCE OF DATA

Directly from cPanel Inc Developers

ABOUT THIS MODULE

This module should be used as a paradigm for creating similar modules so that their use will be consistent. Please use the source of this module as your template (changeing the hash contents, package, and POD to reflect your catagory) If you do please mention that your module is based on this one in the POD, in the "ABOUT THIS MODULE" section like so:

   "This module is based on Daniel Muey's L<IO::Socket::PortState::cPanel> module."

The 5 exportable items in this module should be included in your module and any other hashref's you included should have a corresponding check_* function.

SEE ALSO

IO::Socket::PortState

AUTHOR

Daniel Muey, http://drmuey.com/cpan_contact.pl

COPYRIGHT AND LICENSE

Copyright 2005 by Daniel Muey

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.