summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: d652b32)
raw | patch | inline | side by side (parent: d652b32)
author | octo <octo> | |
Mon, 1 May 2006 16:59:06 +0000 (16:59 +0000) | ||
committer | octo <octo> | |
Mon, 1 May 2006 16:59:06 +0000 (16:59 +0000) |
Added mans/Makefile.am
Improved mans/liboping.pod
Improved mans/liboping.pod
src/mans/Makefile.am | [new file with mode: 0644] | patch | blob |
src/mans/liboping.pod | patch | blob | history | |
src/mans/ping_construct.pod | [new file with mode: 0644] | patch | blob |
src/mans/ping_setopt.pod | [new file with mode: 0644] | patch | blob |
diff --git a/src/mans/Makefile.am b/src/mans/Makefile.am
--- /dev/null
+++ b/src/mans/Makefile.am
@@ -0,0 +1,11 @@
+man_MANS = liboping.3 ping_construct.3 ping_setopt.3
+
+liboping_3_SOURCES = liboping.pod
+ping_construct_3_SOURCES = ping_construct.pod
+ping_setopt_3_SOURCES = ping_setopt.pod
+
+.pod.1:
+ pod2man --release=$(VERSION) --center=$(PACKAGE) $< >$@
+
+.pod.3:
+ pod2man --section=3 --release=$(VERSION) --center=$(PACKAGE) $< >$@
diff --git a/src/mans/liboping.pod b/src/mans/liboping.pod
index a6d46bebfa0c425ca08090a4e3776b5159e67b7e..356095d2d95cca06382406b38a7b8a6115567a75 100644 (file)
--- a/src/mans/liboping.pod
+++ b/src/mans/liboping.pod
liboping is licensed under the GPLv2. No other version of the license is
applicable.
-=head1 CONTACT / AUTHOR
+=head1 AUTHOR
liboping is written by Florian octo Forster E<lt>octo at verplant.orgE<gt>.
It's homepage can be found at L<http://verplant.org/liboping/>.
diff --git a/src/mans/ping_construct.pod b/src/mans/ping_construct.pod
--- /dev/null
@@ -0,0 +1,37 @@
+=head1 NAME
+
+ping_construct - Constructor for the liboping class
+
+=head1 SYNOPSIS
+
+ #include <oping.h>
+
+ pingobj_t *ping_construct (void);
+ void ping_destroy (pingobj_t *obj);
+
+=head1 DESCRIPTION
+
+The B<ping_construct> constructor allocates the memory neccessary for a
+liboping object, initializes that memory and returns a pointer to it.
+
+The B<ping_destroy> iterates over all hosts associated with the liboping object
+I<obj>, closes the sockets, removes the hosts and frees I<obj>'s memory.
+
+=head1 RETURN VALUE
+
+The B<ping_construct> constructor returns a pointer to the allocated memory or NULL if no memory could be allocated.
+
+=head1 SEE ALSO
+
+ping_setopt(3),
+ping_send(3),
+ping_host_add(3),
+ping_iterator_get(3),
+ping_get_error(3)
+
+=head1 AUTHOR
+
+liboping is written by Florian octo Forster E<lt>octo at verplant.orgE<gt>.
+It's homepage can be found at L<http://verplant.org/liboping/>.
+
+(c) 2005, 2006 by Florian octo Forster.
diff --git a/src/mans/ping_setopt.pod b/src/mans/ping_setopt.pod
--- /dev/null
+++ b/src/mans/ping_setopt.pod
@@ -0,0 +1,61 @@
+=head1 NAME
+
+ping_setopt - Set options for a liboping object
+
+=head1 SYNOPSIS
+
+ #include <oping.h>
+
+ int ping_setopt (pingobj_t *obj, int opt, void *val);
+
+=head1 DESCRIPTION
+
+The B<ping_setopt> method sets options that effect all hosts associated with
+the object I<obj> and hosts that are yet to be added to the object.
+
+The I<obj> argument is a pointer to an liboping object, as returned by
+ping_construct(3).
+
+The I<opt> argument specifies the option to set. Use one of the following
+constants:
+
+=over 4
+
+=item B<PING_OPT_TIMEOUT>
+
+The time to wait for a "echo reply" to be received; in seconds. In this case
+the memory pointed to by I<val> is interpreted as a double value and must be
+greater than zero. The default is B<PING_DEF_TIMEOUT>.
+
+=item B<PING_OPT_TTL>
+
+The value written into the time-to-live (= TTL) field of generated ICMP
+packets. The memory pointed to by I<val> is interpreted as an integer. Valid
+values are 1 through 255. Default is B<PING_DEF_TTL>.
+
+=item B<PING_OPT_AF>
+
+The address family to use. The memory pointed to by I<val> is interpreted as an
+integer and must be either B<AF_UNSPEC>, B<AF_INET>, or B<AF_INET6>. Default is
+B<PING_DEF_AF>.
+
+=back
+
+The I<val> argument is a pointer to the new value. It must not be NULL. It is
+dereferences depending on the value of the I<opt> argument, see above. The
+memory pointed to by I<val> is not changed.
+
+=head1 RETURN VALUE
+
+B<ping_setopt> returns zero upon success or less than zero upon failure.
+
+=head1 SEE ALSO
+
+ping_construct(3)
+
+=head1 AUTHOR
+
+liboping is written by Florian octo Forster E<lt>octo at verplant.orgE<gt>.
+It's homepage can be found at L<http://verplant.org/liboping/>.
+
+(c) 2005, 2006 by Florian octo Forster.