football
socket abstraction layer
Loading...
Searching...
No Matches
Data Fields
fb_transport_funcs_t Struct Reference

Data Fields

bool(* configure )(const FB_TLS_CONFIG_FILENAMES *files)
 One-time initialization on startup. Not called per-connection.
 
void(* cleanup )()
 One-time teardown before exit. Not called per-connection.
 
bool(* init )(FB_CONNECTION *connection)
 Initialize a new connection. Return true on success, 0 on failure.
 
ssize_t(* handshake )(struct fb_connection_t *connection)
 Perform TLS handshaking on a new connection. Return incomplete, failure, or 0.
 
ssize_t(* buffering )(struct fb_connection_t *connection)
 Query number of bytes in TLS buffers.
 
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.
 
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).
 
void(* done )(FB_CONNECTION *connection)
 Clean up a closing connection.
 

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