Man page - lc_socket_new(3)
Packages contas this manual
- mtree_subtree_data_min(3)
- lc_channel_set_sym_key(3)
- mdex_init(3)
- mtree_diff_subtree(3)
- lc_socketpair(3)
- lc_socket_close(3)
- lc_syncfile(3)
- mdex_get(3)
- mtree_init(3)
- mdex_alias(3)
- lc_channel_send(3)
- lc_ctx_setkey(3)
- lc_channel_nack_add_log(3)
- q_search(3)
- lc_memsync(3)
- lc_channel_setkey(3)
- mdex_basedir(3)
- lc_channel_ratelimit(3)
- mdex_add(3)
- lc_ctx_ratelimit(3)
- mdex_del(3)
- mtree_build(3)
- lc_channel_check_seqno(3)
- lc_channel_oti_peek(3)
- lc_hashtoaddr(3)
- lc_ctx_new(3)
- lc_ctx_coding_set(3)
- lc_channel_set_pub_key(3)
- q_job_seek(3)
- lc_recv(3)
- q_pool_destroy(3)
- lc_socket_new(3)
- lc_share(3)
- lc_tuntap_create(3)
- lc_channel_rq(3)
- mtree_diff_map(3)
- lc_channel_getkey(3)
- lc_mmapfile(3)
- lc_ctx_set_pub_key(3)
- mdex_tree_hash(3)
- mdex_free(3)
- lc_channel_nack_handler(3)
- lc_recvchunk(3)
- lc_channel_sendmsg(3)
- lc_ctx_ifx(3)
- lc_ctx_getkey(3)
- lc_send(3)
- lc_sync(3)
- mdex_addfile(3)
- lc_ctx_free(3)
- lc_channel_nack_handler_thr(3)
- lc_syncfilelocal(3)
- mtree_subtree_data_max(3)
- q_pool_create(3)
- mdex_put(3)
- lc_sendchunk(3)
- lc_recvtree(3)
- lc_unshare(3)
- mdex_getalias(3)
- lc_channel_coding_set(3)
- lc_sendtree(3)
- mtree_verify(3)
- mtree_free(3)
- q_init(3)
- mtree_parent(3)
- lc_ctx_set_sym_key(3)
- lc_channel_detect_gaps(3)
- q_free(3)
- q_push(3)
- mtree_child(3)
- mtree_nnode(3)
- q_wait(3)
apt-get install liblibrecast-dev
Manual
| LC_SOCKET_NEW(3) | Librecast Programmer's Manual | LC_SOCKET_NEW(3) |
NAME
lc_socket_new, lc_socket_close - create and free Librecast sockets
LIBRARY
Librecast library (liblibrecast, -llibrecast)
SYNOPSIS
#include <librecast/net.h>
lc_socket_t *lc_socket_new(lc_ctx_t *ctx); void lc_socket_close(lc_socket_t *sock);
Compile and link with -llibrecast.
DESCRIPTION
lc_socket_new() creates a new Librecast socket. Call lc_socket_close(3) when done.
Sockets can also be freed by a call to lc_ctx_free(3) on the Librecast context which will free the context and all associated sockets and channels.
lc_socket_free() closes and frees a Librecast socket created with lc_socket_new(3)
RETURN VALUE
lc_socket_new() returns a pointer to a lc_socket_t handle. On error returns NULL and sets errno.
The lc_socket_close() function returns no value.
ERRORS
lc_socket_new() can fail with the following errors:
- ENOMEM
- Out of memory. Possibly, the application hit the RLIMIT_AS or RLIMIT_DATA limit described in getrlimit(2).
lc_socket_new() could also fail with any of the errors listed in socket(2) or setsockopt(2).
SEE ALSO
lc_channel_new(3), lc_ctx_new(3), lc_socket_setopt(3), setsockopt(2), socket(2)
| 2021-02-21 | LIBRECAST |