From eb221426906ba59aa3d797deff5204058d53c095 Mon Sep 17 00:00:00 2001 From: Florian Forster Date: Tue, 17 Feb 2009 13:12:12 +0100 Subject: [PATCH] bindings/perl: Improve license information and fix typos in the documentation. Signed-off-by: Florian Forster --- bindings/perl/lib/Net/Oping.pm | 50 +++++++++++++++++++++++++++------- 1 file changed, 40 insertions(+), 10 deletions(-) diff --git a/bindings/perl/lib/Net/Oping.pm b/bindings/perl/lib/Net/Oping.pm index 6c59ecb..1552ee9 100644 --- a/bindings/perl/lib/Net/Oping.pm +++ b/bindings/perl/lib/Net/Oping.pm @@ -1,3 +1,27 @@ +# +# Net-Oping - lib/Net/Oping.pm +# Copyright (C) 2007 Olivier Fredj +# Copyright (C) 2008,2009 Florian octo Forster +# +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; only version 2 of the License is +# applicable. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +# +# Authors: +# Olivier Fredj +# Florian octo Forster +# + package Net::Oping; =head1 NAME @@ -17,12 +41,13 @@ Net::Oping - ICMP latency measurement module using the oping library. =head1 DESCRIPTION This Perl module is a high-level interface to the -L. Its purpose it to send C packets (also known as "ping") to a host and measure the time -that elapses until the reception of an C packet (also known as -"pong"). If no such packet is received after a certain timeout the host is considered to be unreachable. +L. Its purpose it to send +C packets (also known as "ping") to a host and measure the +time that elapses until the reception of an C packet (also +known as "pong"). If no such packet is received after a certain timeout the +host is considered to be unreachable. -The used C library supports "ping"ing multiple hosts in parallel and +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. @@ -46,7 +71,7 @@ return (1); The interface is kept simple and clean. First you need to create an object to which you then add hosts. Using the C method you can request a latency -measurement and get the current values returned. If neccessary you can remove +measurement and get the current values returned. If necessary you can remove hosts from the object, too. The constructor and methods are defined as follows: @@ -237,7 +262,7 @@ sub ping =item my I<$errmsg> = I<$obj>-EB (); -Returns the last error that occured. +Returns the last error that occurred. =cut @@ -251,7 +276,7 @@ sub get_error =head1 CAVEATS -The C library opens a raw socket to be able to send ICMP packets. On +The I library opens a raw socket to be able to send ICMP packets. On most systems normal users are not allowed to do this. This is why on most systems the L utility is installed as SetUID-root. Since, when using this module, no external process is spawned B process needs the @@ -262,7 +287,7 @@ superuser or, under Linux, needs the C capability. L -The C homepage may be found at L. +The I homepage may be found at L. Information about its mailing list may be found at L. @@ -275,13 +300,18 @@ Perl interface by Florian Forster. Copyright (C) 2007 by Olivier Fredj EofredjEatEproxad.netE -Copyright (C) 2008 by Florian Forster +Copyright (C) 2008,2009 by Florian Forster EoctoEatEverplant.orgE This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.8.7 or, at your option, any later version of Perl 5 you may have available. +Please note that I is licensed under the GPLv2. Derived works of +both, I and I, (i.Ee. binary packages) may +therefore be subject to stricter licensing terms than the source code of this +package. + =cut # vim: set shiftwidth=2 softtabstop=2 tabstop=8 : -- 2.30.2