1ping_construct(3)                  liboping                  ping_construct(3)
2
3
4

NAME

6       ping_construct - Constructor for the liboping class
7

SYNOPSIS

9         #include <oping.h>
10
11         pingobj_t *ping_construct (void);
12         void       ping_destroy   (pingobj_t *obj);
13

DESCRIPTION

15       The ping_construct constructor allocates the memory necessary for a
16       liboping object, initializes that memory and returns a pointer to it.
17
18       The ping_destroy iterates over all hosts associated with the liboping
19       object obj, closes the sockets, removes the hosts and frees obj's
20       memory.
21

RETURN VALUE

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

SEE ALSO

27       ping_setopt(3), ping_send(3), ping_host_add(3), ping_get_error(3),
28       ping_iterator_get(3), liboping(3)
29

AUTHOR

31       liboping is written by Florian "octo" Forster <ff at octo.it>.  Its
32       homepage can be found at <http://noping.cc/>.
33
34       Copyright (c) 2006-2017 by Florian "octo" Forster.
35
36
37
381.10.0                            2017-05-11                 ping_construct(3)
Impressum