liboping(3)

NAME

   liboping - Library to send ICMPv4/ICMPv6 echo packets to multiple hosts

DESCRIPTION

   This is an overview of liboping, a C library to send ICMP ECHO_REQUEST
   packets to remote hosts and measure the time it takes for replies to be
   received. This method, often simply called "ping", is a common way to
   measure network latency and/or host reachability.

   The goals of this library are to provide the above functionality in a
   platform and protocol independent manner. The interface is simple,
   object oriented and (hopefully) ANSI-C compliant.

GENERAL USAGE

   There are two main types that are used by applications. Both are
   "opaque types", meaning they are structures that are not completely
   defined in the header file, so you cannot access the structures'
   members. You don't need to, don't do it. These structures are subject
   to change without notice.

   "pingobj_t"
       A ping-object. You can set specific options for this object, add
       and remove hosts to/from it and send ICMP packets to all associated
       hosts. This is often called a "handle".

   "pingobj_iter_t"
       An iterator over the hosts associated with a "pingobj_t" object.
       This iterator can be used to query more information about a host,
       for example the hostname, the measured latency or the current ICMP
       sequence.

   Upon startup you usually create one or more "pingobj_t" objects and add
   hosts to it using the "ping_host_add" method (see below). You
   periodically send "echo requests" using the "ping_send" method, iterate
   over all hosts using "ping_iterator_get" and "ping_iterator_next". For
   each host you call "ping_iterator_get_info" to read the current latency
   and do something with it.

   If an error occurs you can use "ping_get_error" so get information on
   what failed.

LINKING WITH LIBOPING

   Depending on you platform you don't need any extra libraries (e.g.
   GNU/Linux) or "libsocket" (using "-lsocket") if the "socket" function
   is not in the C-library. The latter is the case for the Solaris
   operating system.

SYMBOL NAMES

   All "official" function or method names are prefixed with "ping_".
   Don't use any other functions or methods. Although no such functions
   should exist.

THREAD SAFETY

   liboping has been designed to be as thread safe a possible. However,
   this has not been tested and may need some additional work. Use at your
   own risk and please report back any problems or success messages. Thank
   you :)

SEE ALSO

   ping_construct(3), ping_setopt(3), ping_host_add(3), ping_send(3),
   ping_get_error(3), ping_iterator_get(3), ping_iterator_get_info(3),
   ping_iterator_get_context(3)

LICENSE

   liboping is licensed under the GPLv2. No other version of the license
   is applicable.

AUTHOR

   liboping is written by Florian "octo" Forster <ff at octo.it>.  Its
   homepage can be found at <http://noping.cc/>.

   Copyright (c) 2005-2016 by Florian "octo" Forster.



Opportunity


Personal Opportunity - Free software gives you access to billions of dollars of software at no cost. Use this software for your business, personal use or to develop a profitable skill. Access to source code provides access to a level of capabilities/information that companies protect though copyrights. Open source is a core component of the Internet and it is available to you. Leverage the billions of dollars in resources and capabilities to build a career, establish a business or change the world. The potential is endless for those who understand the opportunity.

Business Opportunity - Goldman Sachs, IBM and countless large corporations are leveraging open source to reduce costs, develop products and increase their bottom lines. Learn what these companies know about open source and how open source can give you the advantage.


Free Software


Free Software provides computer programs and capabilities at no cost but more importantly, it provides the freedom to run, edit, contribute to, and share the software. The importance of free software is a matter of access, not price. Software at no cost is a benefit but ownership rights to the software and source code is far more significant.

Free Office Software - The Libre Office suite provides top desktop productivity tools for free. This includes, a word processor, spreadsheet, presentation engine, drawing and flowcharting, database and math applications. Libre Office is available for Linux or Windows.


Free Books


The Free Books Library is a collection of thousands of the most popular public domain books in an online readable format. The collection includes great classical literature and more recent works where the U.S. copyright has expired. These books are yours to read and use without restrictions.

Source Code - Want to change a program or know how it works? Open Source provides the source code for its programs so that anyone can use, modify or learn how to write those programs themselves. Visit the GNU source code repositories to download the source.


Education


Study at Harvard, Stanford or MIT - Open edX provides free online courses from Harvard, MIT, Columbia, UC Berkeley and other top Universities. Hundreds of courses for almost all major subjects and course levels. Open edx also offers some paid courses and selected certifications.

Linux Manual Pages - A man or manual page is a form of software documentation found on Linux/Unix operating systems. Topics covered include computer programs (including library and system calls), formal standards and conventions, and even abstract concepts.