logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

ping_construct - Constructor for the liboping class

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.

1.10.0                                             2024-10-20                                  ping_construct(3)

Description

       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.

Name

       ping_construct - Constructor for the liboping class

Return Value

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

See Also

ping_setopt(3), ping_send(3), ping_host_add(3), ping_get_error(3), ping_iterator_get(3), liboping(3)

Synopsis

         #include <oping.h>

         pingobj_t *ping_construct (void);
         void       ping_destroy   (pingobj_t *obj);

See Also