implement tcp_socket_connection_connect API