Synopsis
CTL_STATUS_t ctl_soc_use_event(CTL_SOCKET_t s,
                               CTL_EVENT_SET_t *wakeEvent,
                               CTL_EVENT_SET_t wakeValue);
Description

ctl_soc_use_event is a TCP server function to assign the wake event pointer and wake event value used for thread synchronization on a per-socket basis. ctl_soc_use_event This function should be called from the accept callback function (see CTL_TCP_ACCEPT_FN_t).

‘Callback’ and ‘Event’ TCP server models are mutually exclusive—invoking ctl_soc_use_event will nullify the behavior set in a previous call to ctl_soc_use_callback, ctl_tcp_use_callback, or ctl_tcp_use_event.

See Also

ctl_soc_use_callback, ctl_tcp_use_event, ctl_tcp_accept, ctl_tcp_bind, ctl_tcp_use_callback