Sortix nightly manual
This manual documents Sortix nightly, a development build that has not been officially released. You can instead view this document in the latest official manual.
NAME
tls_accept_socket, tls_accept_fds, tls_accept_cbs — accept an incoming client connection in a TLS serverSYNOPSIS
#include <tls.h>tls_accept_socket(struct tls *tls, struct tls **cctx, int socket);
tls_accept_fds(struct tls *tls, struct tls **cctx, int fd_read, int fd_write);
tls_accept_cbs(struct tls *tls, struct tls **cctx, ssize_t (*tls_read_cb)(struct tls *ctx, void *buf, size_t buflen, void *cb_arg), ssize_t (*tls_write_cb)(struct tls *ctx, const void *buf, size_t buflen, void *cb_arg), void *cb_arg);