CTL_TCP_SOCKET_CONNECTION_STATE_t ctl_tcp_get_socket_connection_state(CTL_SOCKET_t soc);
ctl_tcp_get_socket_connection_state returns the connection state of socket soc. If soc does not identify a socket, ctl_tcp_get_socket_connection_state returns CTL_TCP_SOCKET_STATE_CLOSED.