lc_channel_send(3)

lc_channel_send3

Send data on a librecast channel

Usage

#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.

Library

Librecast library (liblibrecast, -llibrecast)

Overview

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:

MSG_DROP

This flag causes the packet to be dropped instead of sending. It is used for testing. All normal processing, such as encoding proceeds as usual. Only the final send syscall is skipped. The return value will be the number of bytes that would have been sent.

Return value

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.

Errors

See send(2).

From liblibrecast-dev 0.9.1-1 in Debian 13 (Trixie). Parsed by carta from the page's man source.