|
football
socket abstraction layer
|
Connection state information. More...
#include <fb_service.h>
Data Fields | ||
| FB_SOCKETTYPE | type | |
| Magic number so we know this is a connection. | ||
| FB_SERVICE * | service | |
| 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. | ||
| bool | greeted | |
| Did we already get a greeting in ALLOW mode? | ||
| bool | http | |
| Flag set for HTTP connections. | ||
| bool | encrypted | |
| Flag set for TLS connections. | ||
| const FB_TRANSPORT_FUNCS * | transport | |
| 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. | ||
Connection state information.
| time_t fb_connection_t::expiry_time |
State: Negotiating, open, flushing, closing, etc.
Connection expiration time.
| bool fb_connection_t::http |
Flag set for HTTP connections.
Cleared when greeted.