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

mdex_put - insert an entry into a multicast index

Description

       The  mdex_put  function  stores  the  value  of  entry in the multicast index mdex, using hash (of length
       hashlen) as the key.

       entry may be NULL, and an entry will still be created.

Errors

EINVAL Invalid argument. Both mdex and hash are required (not NULL), and hashlen > 0.

       ENOMEM Not enough space/cannot allocate memory (POSIX.1-2001).

Library

       Librecast library (liblibrecast, -llibrecast)

Name

       mdex_put - insert an entry into a multicast index

Return Value

mdex_put() returns zero on success.  On error, -1 is returned, and errno is set to indicate the error.

See Also

mdex_init(3), mdex_free(3), mdex_get(3), mdex_del(3), lc_share(3)

LIBRECAST                                          2023-06-20                                        MDEX_PUT(3)

Synopsis

#include<librecast/mdex.h>intmdex_put(mdex_t*mdex,unsignedchar*hash,size_thashlen,mdex_entry_t*entry);

       Compile and link with -llibrecast.

See Also