ping_construct(3)

ping_construct3

Constructor for the liboping class

Usage

  #include <oping.h>
  pingobj_t *ping_construct (void);
  void       ping_destroy   (pingobj_t *obj);

Overview

The ping_construct constructor allocates the memory necessary for a liboping object, initializes that memory and returns a pointer to it.

The ping_destroy iterates over all hosts associated with the liboping object obj, closes the sockets, removes the hosts and frees obj's memory.

Return value

The ping_construct constructor returns a pointer to the allocated memory or NULL if no memory could be allocated.

Releases

10 releases since Debian 4.0 (Etch); the text changed 9 times.

  1. 4.0
  2. 5.0
  3. 6.0
  4. 7
  5. 8
  6. 9
  7. 10
  8. 11
  9. 12
  10. 13

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.

From liboping-dev 1.10.0-5+b5 in Debian 13 (Trixie). Parsed by carta from the page's man source.