Data Fields | |
struct vtm_http_srv_cbs | cbs |
struct vtm_socket_tls_cfg | tls |
const char * | host |
unsigned int | port |
unsigned int | backlog |
unsigned int | events |
unsigned int | threads |
struct vtm_http_srv_cbs vtm_http_srv_opts::cbs |
Callbacks to use while running. At least the http_request callback MUST be set.
struct vtm_socket_tls_cfg vtm_http_srv_opts::tls |
TLS options
const char* vtm_http_srv_opts::host |
the binding address for the TCP socket
unsigned int vtm_http_srv_opts::port |
the binding port for the TCP socket
unsigned int vtm_http_srv_opts::backlog |
backlog for incoming connections
unsigned int vtm_http_srv_opts::events |
number of socket events per call
unsigned int vtm_http_srv_opts::threads |
Number of worker threads to use. Setting this value to zero lets the server run in single threaded mode.