LC_CHANNEL_CODING_SET(3) | Librecast Programmer's Manual | LC_CHANNEL_CODING_SET(3) |
lc_ctx_coding_set, lc_channel_coding_set - set Librecast channel encoding options
Librecast library (liblibrecast, -llibrecast)
#include <librecast/net.h>
int lc_ctx_coding_set(lc_ctx_t *ctx, int coding); int lc_channel_coding_set(lc_channel_t *chan, int coding);
Compile and link with -llibrecast.
lc_ctx_coding_set() sets the default encoding options for sockets and channels subsequently created using context ctx.
lc_channel_coding_set() sets encoding options for a Librecast channel, chan, overriding any defaults inherited from the parent Librecast context.
chan is a pointer to a Librecast channel.
The coding argument can include the bitwise OR of any of the following coding options:
Returns the current value of the channel coding options.
None.
lc_channel_new(3), lc_channel_close(3), lc_channel_send(3), lc_channel_set_sym_key(3), lc_ctx_new(3), lc_socket_setopt(3), lc_socket_recv(3)
2023-07-31 | LIBRECAST |