football
socket abstraction layer
Data Fields
fb_connection_t Struct Reference

Connection state information. More...

#include <fb_service.h>

Data Fields

FB_SOCKETTYPE type
 Magic number so we know this is a connection.
 
FB_SERVICEservice
 Service to which connection belongs.
 
int socket
 File descriptor for this connection.
 
FB_SOCKETSTATE state
 
time_t expiry_time
 State: Negotiating, open, flushing, closing, etc. More...
 
bool greeted
 Did we already get a greeting in ALLOW mode?
 
bool http
 Flag set for HTTP connections. More...
 
bool encrypted
 Flag set for TLS connections.
 
const FB_TRANSPORT_FUNCStransport
 
FB_HTTPREQUEST request
 
FB_IOQUEUE assembly
 Output to websocket, awaiting assembly to a WebSocket packet.
 
FB_IOQUEUE out
 Output ready to go out the socket.
 
FB_INPUTBUFFER in
 Input buffer.
 
time_t next_ping
 Time to send next websocket ping.
 
int domain
 Connection domain: PF_INET or PF_INET6.
 
union {
   struct sockaddr_in   ip4addr
 
origin
 
char * filename
 For file connections.
 
void * context
 For user use, if desired/needed.
 
void * relatedObject
 C++ object for this connection.
 

Detailed Description

Connection state information.

Field Documentation

◆ expiry_time

time_t fb_connection_t::expiry_time

State: Negotiating, open, flushing, closing, etc.

Connection expiration time.

◆ http

bool fb_connection_t::http

Flag set for HTTP connections.

Cleared when greeted.


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