Skip to content

Struct SYN_Httpd

ClassList > SYN_Httpd

HTTP server context structure.

  • #include <syn_httpd.h>

Public Attributes

Type Name
SYN_Socket client
SYN_Socket listener
uint16_t port
uint32_t recv_deadline
size_t route_count
const SYN_HttpdRoute * routes
bool running
size_t rx_total
SYN_HttpdState state
uint8_t * work_buf
size_t work_buf_size

Public Attributes Documentation

variable client

SYN_Socket SYN_Httpd::client;

Active client socket


variable listener

SYN_Socket SYN_Httpd::listener;

Bound listener socket handle


variable port

uint16_t SYN_Httpd::port;

Listening TCP port number


variable recv_deadline

uint32_t SYN_Httpd::recv_deadline;

Tick deadline for header recv


variable route_count

size_t SYN_Httpd::route_count;

Number of routes in array


variable routes

const SYN_HttpdRoute* SYN_Httpd::routes;

Array of registered route entries


variable running

bool SYN_Httpd::running;

Server state active flag


variable rx_total

size_t SYN_Httpd::rx_total;

Bytes accumulated in work_buf


variable state

SYN_HttpdState SYN_Httpd::state;

Current processing phase


variable work_buf

uint8_t* SYN_Httpd::work_buf;

Buffer for request processing


variable work_buf_size

size_t SYN_Httpd::work_buf_size;

Size of work buffer in bytes



The documentation for this class was generated from the following file src/syntropic/net/syn_httpd.h