Synopsis
CTL_STATUS_t ctl_tcp_use_callback(CTL_NET_PORT_t port,
                                  CTL_TCP_SERVER_FN_t serverFn);
Description

ctl_tcp_use_callback sets serverFn to be the callback function for the the bound TCP port port. You should call ctl_tcp_use_callback after ctl_tcp_bind but before ctl_tcp_accept. port is specified in network byte order.

‘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_event.

See Also

ctl_tcp_use_event, ctl_tcp_use_callback, ctl_soc_use_event, ctl_tcp_accept, ctl_tcp_bind