Synopsis
CTL_STATUS_t ctl_soc_use_callback(CTL_SOCKET_t s,
                                  CTL_TCP_SERVER_FN_t serverFn);
Description

ctl_soc_use_callback assign the server callback function serverFn to the socket s. This function should only be called in the accept callback (see CTL_TCP_ACCEPT_FN_t).

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

See Also

ctl_tcp_accept, ctl_tcp_bind, ctl_tcp_use_callback, ctl_soc_use_event, ctl_tcp_use_event