New tcp_socket_connection_is_connected API