Risk-Aware Code Review: Auto Approve Low-Risk Changes
LiveReview LiveReview LiveReview - Free, Risk-Aware Code Review: Auto Approve Low-Risk Changes | Product Hunt LiveReview - Free, Risk-Aware Code Review: Auto Approve Low-Risk Changes | Product Hunt GitHub Install Now

We'd appreciate a star

lc_channel_send, lc_channel_sendmsg - send data on a Librecast channel

Description

       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.

Errors

       See send(2).

Library

       Librecast library (liblibrecast, -llibrecast)

Name

       lc_channel_send, lc_channel_sendmsg - send data on a Librecast channel

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.

See Also

lc_ctx_new(3),lc_channel_new(3), send(2), sendmsg(2)

LIBRECAST                                          2023-08-09                                 LC_CHANNEL_SEND(3)

Synopsis

#include<librecast/net.h>ssize_tlc_channel_send(lc_channel_t*chan,constvoid*buf,size_tlen,intflags)ssize_tlc_channel_sendmsg(lc_channel_t*chan,structmsghdr*msg,intflags);

       Compile and link with -llibrecast.

See Also