| 1 |
-------- |
| 2 |
Abstract |
| 3 |
-------- |
| 4 |
|
| 5 |
POE::Component::Client::Ping is an asynchronous, event driven client |
| 6 |
for ICMP ping. It accepts events containing the specifics of ICMP |
| 7 |
ping requests, and it returns events carrying the results of those |
| 8 |
pings. |
| 9 |
|
| 10 |
------------ |
| 11 |
Requirements |
| 12 |
------------ |
| 13 |
|
| 14 |
This module requires POE. It also requires root privilege, or your |
| 15 |
operating system's equivalent, so that it can open a socket for ICMP |
| 16 |
ping. Knowing what this means, how to achieve it, and the potential |
| 17 |
hazards of doing so are left as exercises for the reader. |
| 18 |
|
| 19 |
------------------ |
| 20 |
Basic Installation |
| 21 |
------------------ |
| 22 |
|
| 23 |
POE::Component::Client::Ping may be installed through the CPAN shell |
| 24 |
in the usual CPAN shell manner. This typically is: |
| 25 |
|
| 26 |
$ perl -MCPAN -e 'intstall POE::Component::Client::Ping' |
| 27 |
|
| 28 |
You can also read this README from the CPAN shell: |
| 29 |
|
| 30 |
$ perl -MCPAN -e shell |
| 31 |
cpan> readme POE::Component::Client::Ping |
| 32 |
|
| 33 |
And you can install the component from the CPAN prompt as well: |
| 34 |
|
| 35 |
cpan> install POE::Component::Client::Ping |
| 36 |
|
| 37 |
------------------- |
| 38 |
Manual Installation |
| 39 |
------------------- |
| 40 |
|
| 41 |
POE::Component::Client::Ping can also be installed manually. |
| 42 |
<ftp://ftp.cpan.org/pub/CPAN/authors/id/R/RC/RCAPUTO/> or a similarly |
| 43 |
named directory at your favorite CPAN mirror should hold the latest |
| 44 |
version. |
| 45 |
|
| 46 |
Downloading and unpacking the distribution are left as exercises for |
| 47 |
the reader. To build and test it: |
| 48 |
|
| 49 |
perl Makefile.PL |
| 50 |
make test |
| 51 |
|
| 52 |
The test program, t/01_ping.t, makes an excellent sample program. In |
| 53 |
fact, it was adapted from the sample program used to debug this |
| 54 |
component. If you would like to see more details about the test's |
| 55 |
operation, edit t/01_ping.t and set the DEBUG constant to any value |
| 56 |
Perl considers "true". |
| 57 |
|
| 58 |
When you're ready to install the component: |
| 59 |
|
| 60 |
make install |
| 61 |
|
| 62 |
It should now be ready to use. |
| 63 |
|
| 64 |
Thanks for reading! |
| 65 |
|
| 66 |
-- Rocco Caputo / [email protected] / poe.perl.org / poe.sourceforge.net |