CTL_STATUS_t ctl_tcp_use_event(CTL_NET_PORT_t port,
                               CTL_EVENT_SET_t *wake_event,
                               CTL_EVENT_SET_t wake_value);

ctl_tcp_use_event assigns the wake event pointer and value used for sockets used by a TCP server on port port. ‘Callback’ and ‘event’ TCP server models are mutually exclusive—invoking this function will nullify the behavior set in a previous call to ctl_tcp_use_callback.

See Also

ctl_tcp_use_callback, ctl_soc_use_callback, ctl_soc_use_event