|
pianod2
multisource multiuser scriptable networked music player
|
#include <fb_transport.h>
Public Attributes | |
| bool(* | configure )(const FB_TLS_CONFIG_FILENAMES *files) |
| One-time initialization on startup. Not called per-connection. More... | |
| void(* | cleanup )() |
| One-time teardown before exit. Not called per-connection. More... | |
| bool(* | init )(FB_CONNECTION *connection) |
| Initialize a new connection. Return true on success, 0 on failure. More... | |
| ssize_t(* | handshake )(struct fb_connection_t *connection) |
| Perform TLS handshaking on a new connection. Return incomplete, failure, or 0. More... | |
| ssize_t(* | buffering )(struct fb_connection_t *connection) |
| Query number of bytes in TLS buffers. More... | |
| ssize_t(* | read )(struct fb_connection_t *connection, char *data, ssize_t byte_count) |
| Read data from a connection. Return transport constant or bytes read. More... | |
| ssize_t(* | write )(struct fb_connection_t *connection, const char *data, ssize_t byte_count) |
| Write data to a connection. Return incomplete, failure, or bytes written (0 is not an error). More... | |
| void(* | done )(FB_CONNECTION *connection) |
| Clean up a closing connection. More... | |
| ssize_t(* fb_transport_funcs_t::buffering) (struct fb_connection_t *connection) |
Query number of bytes in TLS buffers.
| void(* fb_transport_funcs_t::cleanup) () |
One-time teardown before exit. Not called per-connection.
| bool(* fb_transport_funcs_t::configure) (const FB_TLS_CONFIG_FILENAMES *files) |
One-time initialization on startup. Not called per-connection.
| void(* fb_transport_funcs_t::done) (FB_CONNECTION *connection) |
Clean up a closing connection.
| ssize_t(* fb_transport_funcs_t::handshake) (struct fb_connection_t *connection) |
Perform TLS handshaking on a new connection. Return incomplete, failure, or 0.
| bool(* fb_transport_funcs_t::init) (FB_CONNECTION *connection) |
Initialize a new connection. Return true on success, 0 on failure.
| ssize_t(* fb_transport_funcs_t::read) (struct fb_connection_t *connection, char *data, ssize_t byte_count) |
Read data from a connection. Return transport constant or bytes read.
| ssize_t(* fb_transport_funcs_t::write) (struct fb_connection_t *connection, const char *data, ssize_t byte_count) |
Write data to a connection. Return incomplete, failure, or bytes written (0 is not an error).