mdex_init, mtree_free - initialize and free a multicast index
Contents
Description
The mdex_init function initializes a multicast index.
entries gives the initial number of entries to allocate. This is just a hint for initial memory
allocation, and the index will be resized as required.
Errors
ENOMEM Not enough space/cannot allocate memory (POSIX.1-2001).
Library
Librecast library (liblibrecast, -llibrecast)
Name
mdex_init, mtree_free - initialize and free a multicast index
Return Value
mdex_init() returns a pointer to a mdex_t handle, which should be freed by passing to mdex_free() when
done. On error, NULL is returned, and errno is set to indicate the error.
The mdex_free() function returns no value, and preserves errno.
See Also
mdex_get(3), mdex_put(3), mdex_del(3) LIBRECAST 2023-06-20 MDEX_INIT(3)
Synopsis
#include<librecast/mdex.h>mdex_t*mdex_init(size_tentries);voidmdex_free(mdex_t*mdex);
Compile and link with -llibrecast.
