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

Connection state information. More...

#include <fb_service.h>

Collaboration diagram for fb_connection_t:
Collaboration graph
[legend]

Public Attributes

FB_SOCKETTYPE type
 Magic number so we know this is a connection. More...
 
FB_SERVICEservice
 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_FUNCStransport
 
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...
 

Detailed Description

Connection state information.

Member Data Documentation

◆ assembly

FB_IOQUEUE fb_connection_t::assembly

Output to websocket, awaiting assembly to a WebSocket packet.

◆ context

void* fb_connection_t::context

For user use, if desired/needed.

◆ domain

int fb_connection_t::domain

Connection domain: PF_INET or PF_INET6.

◆ encrypted

bool fb_connection_t::encrypted

Flag set for TLS connections.

◆ filename

char* fb_connection_t::filename

For file connections.

◆ greeted

bool fb_connection_t::greeted

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

Did we already get a greeting in ALLOW mode?

◆ http

bool fb_connection_t::http

Flag set for HTTP connections.

Cleared when greeted.

◆ in

FB_INPUTBUFFER fb_connection_t::in

Input buffer.

◆ ip4addr

struct sockaddr_in fb_connection_t::ip4addr

◆ next_ping

time_t fb_connection_t::next_ping

Time to send next websocket ping.

◆ 

union { ... } fb_connection_t::origin

◆ out

FB_IOQUEUE fb_connection_t::out

Output ready to go out the socket.

◆ relatedObject

void* fb_connection_t::relatedObject

C++ object for this connection.

◆ request

FB_HTTPREQUEST fb_connection_t::request

◆ service

FB_SERVICE* fb_connection_t::service

Service to which connection belongs.

◆ socket

int fb_connection_t::socket

File descriptor for this connection.

◆ state

FB_SOCKETSTATE fb_connection_t::state

◆ transport

const FB_TRANSPORT_FUNCS* fb_connection_t::transport

◆ type

FB_SOCKETTYPE fb_connection_t::type

Magic number so we know this is a connection.


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