pingobj_t *ping_construct (void);
void ping_destroy (pingobj_t *obj);
DESCRIPTIONThe 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 VALUEThe ping_construct constructor returns a pointer to the allocated memory or NULL if no memory could be allocated.
AUTHORliboping is written by Florian ``octo'' Forster <octo at verplant.org>. Its homepage can be found at <http://verplant.org/liboping/>.
Copyright (c) 2005-2011 by Florian ``octo'' Forster.