pianod2
multisource multiuser scriptable networked music player
Public Attributes | List of all members
fb_transport_funcs_t Struct Reference

#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...
 

Member Data Documentation

◆ buffering

ssize_t(* fb_transport_funcs_t::buffering) (struct fb_connection_t *connection)

Query number of bytes in TLS buffers.

◆ cleanup

void(* fb_transport_funcs_t::cleanup) ()

One-time teardown before exit. Not called per-connection.

◆ configure

bool(* fb_transport_funcs_t::configure) (const FB_TLS_CONFIG_FILENAMES *files)

One-time initialization on startup. Not called per-connection.

◆ done

void(* fb_transport_funcs_t::done) (FB_CONNECTION *connection)

Clean up a closing connection.

◆ handshake

ssize_t(* fb_transport_funcs_t::handshake) (struct fb_connection_t *connection)

Perform TLS handshaking on a new connection. Return incomplete, failure, or 0.

◆ init

bool(* fb_transport_funcs_t::init) (FB_CONNECTION *connection)

Initialize a new connection. Return true on success, 0 on failure.

◆ read

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.

◆ write

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).


The documentation for this struct was generated from the following file: