CTL_STATUS_t ctl_tcp_accept(CTL_NET_PORT_t port,
                            CTL_TCP_ACCEPT_FN_t acceptFn);

ctl_tcp_accept registers the function acceptFn as the accept callback for port port. port is specified in network byte order.

acceptFn may be null, in which case all incoming connection requests are accepted provided that the number of open sockets is less than the allowed limit.

See Also

CTL_TCP_ACCEPT_FN_t, ctl_tcp_bind