|
pianod2
multisource multiuser scriptable networked music player
|
Connection state information. More...
#include <fb_service.h>

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