ping_send(3)
β¨ ping_send β the manual, but make it a group chat β¨
okay so bestie, welcome to ping_send(3) from the liboping manual π this is the page about the actual, literal workhorse of the whole library, so sit down, hydrate, and let's get into it π«Ά
πΈ NAME πΈ
ping_send β send ICMP echo requests to all the hosts you've associated, and then wait around for the ICMP echo responses to show up π
π SYNOPSIS π
#include <oping.h>
int ping_send (pingobj_t *obj);
π¦ DESCRIPTION π¦
The ping_send method is, no exaggeration, the actual workhorse of this library π like, everything else is cute supporting cast and this is the main character. What it does:
- It crafts ICMP packets for all the hosts associated with
objβ¨ - It sends them out through the corresponding sockets π€
- It then waits for echo responses and receives them, writing latency information for each host β³
- It comes back once all the echo replies have been read, or once the timeout is reached β and that timeout is the one you set with
ping_setopt(3)β°
After this function returns, you'll most likely be looping over all your hosts usingping_iterator_get(3)andping_iterator_next(which is described on that same manual page, iykyk) and then callingping_iterator_get_info(3)on each host. That's the whole little routine, and honestly? obsessed π
β RETURN VALUE β
ping_send returns the number of echo replies it received π or a value less than zero if something went wrong π In that oopsie case, go call ping_get_error(3) to get yourself an error message.
π SEE ALSO π
ping_construct(3)ping_setopt(3)ping_iterator_get(3)ping_iterator_get_info(3)ping_get_error(3)liboping(3)
π AUTHOR π
liboping is written by Florian "octo" Forster <ff at octo.it>. Its homepage can be found at <http://noping.cc/> π
Copyright (c) 2006-2017 by Florian "octo" Forster.
and that's the whole page, bestie π this was version 1.10.0, dated 2017-05-11, and it lives under ping_send(3) in the liboping manual. slay, go send some packets, periodt π
π
π¦ where this page comes from
- alpine 3.24: liboping-doc 1.10.0-r2 Β· LGPL-2.0-or-later
- epel 10: liboping-devel 1.10.0-33.el10_0 Β· GPL-2.0-only
- epel 9: liboping-devel 1.10.0-19.el9 Β· GPLv2
- fedora 43: liboping-devel 1.10.0-35.fc43 Β· GPL-2.0-only
- fedora 43: liboping-devel 1.10.0-35.fc43 Β· GPL-2.0-only
- fedora 44: liboping-devel 1.10.0-36.fc44 Β· GPL-2.0-only
- fedora 44: liboping-devel 1.10.0-36.fc44 Β· GPL-2.0-only
- nixos 26.05: liboping 1.10.0
- nixpkgs unstable: liboping 1.10.0
- opensuse-leap 16.0: liboping-devel 1.10.0-bp160.1.14 Β· LGPL-2.1-only
- opensuse-leap 16.0: liboping-devel 1.10.0-bp160.1.14 Β· LGPL-2.1-only
- opensuse-leap 16.0: liboping-devel 1.10.0-bp160.1.14 Β· LGPL-2.1-only
- opensuse-leap 16.0: liboping-devel 1.10.0-bp160.1.14 Β· LGPL-2.1-only
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms