Synopsis
CTL_SOCKET_t ctl_tcp_socket(void);
Description

ctl_tcp_socket fetches a TCP socket from the pool of unused sockets. ctl_tcp_socket returns a socket index if successful or zero for fail (i.e. no sockets were available for use).

Once a socket is allocated, application code must make a call to ctl_tcp_connect within 100 CTL_TIME_t units or the socket will be reclaimed by the network library.

See Also

CTL_SOCKET_t, ctl_tcp_connect, ctl_tcp_send, ctl_tcp_recv, ctl_tcp_shutdown, ctl_tcp_close_socket