X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=bindings%2Fperl%2Flib%2FNet%2FOping.pm;h=47993dcc093e26b32ab74d169940ae28e75da949;hb=d0feb43395e766c2e2fc988d2ada8965595978ce;hp=1552ee98cb1aea4669df4758a16bd063a163ee64;hpb=eb221426906ba59aa3d797deff5204058d53c095;p=liboping.git diff --git a/bindings/perl/lib/Net/Oping.pm b/bindings/perl/lib/Net/Oping.pm index 1552ee9..47993dc 100644 --- a/bindings/perl/lib/Net/Oping.pm +++ b/bindings/perl/lib/Net/Oping.pm @@ -30,7 +30,7 @@ Net::Oping - ICMP latency measurement module using the oping library. =head1 SYNOPSIS - use Net::Oping; + use Net::Oping (); my $obj = Net::Oping->new (); $obj->host_add (qw(one.example.org two.example.org)); @@ -49,8 +49,8 @@ host is considered to be unreachable. The used I library supports "ping"ing multiple hosts in parallel and works with IPv4 and IPv6 transparently. Other advanced features that are -provided by the underlying library, such as setting the data sent or -configuring the time of live (TTL) are not yet supported by this interface. +provided by the underlying library, such as setting the data sent, are not yet +supported by this interface. =cut @@ -61,7 +61,7 @@ use warnings; use Carp (qw(cluck confess)); -our $VERSION = '1.02'; +our $VERSION = '1.20'; require XSLoader; XSLoader::load ('Net::Oping', $VERSION); @@ -78,7 +78,7 @@ The constructor and methods are defined as follows: =over 4 -=item my I<$obj> = Net::Oping-EB (); +=item I<$obj> = Net::Oping-EB (); Creates and returns a new object. @@ -99,7 +99,7 @@ sub DESTROY _ping_destroy ($obj->{'c_obj'}); } -=item my I<$status> = I<$obj>-EB (I<$timeout>); +=item I<$status> = I<$obj>-EB (I<$timeout>); Sets the timeout before a host is considered unreachable to I<$timeout> seconds, which may be a floating point number to specify fractional seconds. @@ -122,11 +122,35 @@ sub timeout return (1); } -=item my I<$status> = I<$obj>-EB (I<$ip_addr>); +=item I<$status> = I<$obj>-EB (I<$ttl>); + +Sets the I