Data Fields | |
struct vtm_socket_addr | addr |
struct vtm_socket_tls_cfg | tls |
struct vtm_nm_stream_srv_cbs | cbs |
unsigned int | threads |
Defines the options with which the server runs
struct vtm_socket_addr vtm_nm_stream_srv_opts::addr |
The binding address and port
struct vtm_socket_tls_cfg vtm_nm_stream_srv_opts::tls |
TLS options
struct vtm_nm_stream_srv_cbs vtm_nm_stream_srv_opts::cbs |
Callbacks to use while running. At least the client_msg callback MUST be set.
unsigned int vtm_nm_stream_srv_opts::threads |
Number of worker threads to use. Setting this value to zero lets the server run in single threaded mode.