Data Fields
vtm_socket_dgram_srv_opts Struct Reference

Data Fields

struct vtm_socket_addr addr
 
struct vtm_socket_dgram_srv_cbs cbs
 
unsigned int queue_limit
 
unsigned int threads
 

Field Documentation

struct vtm_socket_addr vtm_socket_dgram_srv_opts::addr

Binding address and port

struct vtm_socket_dgram_srv_cbs vtm_socket_dgram_srv_opts::cbs

Callbacks to use while running. At least the dgram_recv() callback MUST be set

unsigned int vtm_socket_dgram_srv_opts::queue_limit

Queue length for unprocessed datagrams

unsigned int vtm_socket_dgram_srv_opts::threads

Number of worker threads to use. Setting this value to zero lets the server run in single threaded mode.