An extensible multi-threaded TCP/TLS socket library
git clone git://soophie.de/sock
16
*/18
// @file sock.h19
// @desc An extensible multi-threaded TCP/TLS socket library21
#pragma once23
#include <stdbool.h>
42
SOCK_ERR__COUNT43
} sock_err_t;43
// @type sock_t45
// @struct sock_t46
// @groupdef sock_t47
typedef struct sock sock_t;
77
// @type sock_global_fn_t78
typedef sock_err_t (*sock_global_fn_t)(sock_t *, sock_conn_t *);78
// @struct sock79
// @group sock_t80
// @impl sock_t81
struct sock {82
sock_bind_t *binds;83
size_t binds_len;