LC_CHANNEL_SEND(3) | Librecast Programmer's Manual | LC_CHANNEL_SEND(3) |
lc_channel_send, lc_channel_sendmsg - send data on a Librecast channel
Librecast library (liblibrecast, -llibrecast)
#include <librecast/net.h>
ssize_t lc_channel_send(lc_channel_t *chan, const void *buf, size_t len, int flags) ssize_t lc_channel_sendmsg(lc_channel_t *chan, struct msghdr *msg, int flags);
Compile and link with -llibrecast.
Each of these functions sends data over multicast on the librecast channel chan. They are analogous to the send(2) and sendmsg(2) calls.
In addition to the usual flags used with send(2) and sendmsg(2) these functions support the following flags:
These calls return the number of bytes received, or -1 if an error occurred. In the event of an error, errno is set to indicate the error.
See send(2).
lc_ctx_new(3), lc_channel_new(3), send(2), sendmsg(2)
2023-08-09 | LIBRECAST |