Synopsis
CTL_STATUS_t ctl_udp_bind(CTL_NET_PORT_t port,
                          CTL_UDP_RECV_FN_t callback);
Description

ctl_udp_bind registers the callback function callback for received datagrams on UDP port port. To unbind a port to enable reuse of the port's resources, use ctl_udp_unbind.

ctl_udp_bind returns CTL_NO_ERROR if the call was successful; i.e. the number of bound ports was less than the value passed to ctl_udp_init.

See Also

CTL_UDP_RECV_FN_t, ctl_udp_unbind