Commit de40b0ad authored by Dafydd Harries's avatar Dafydd Harries
Browse files

test client: send local candidate to server

parent b989ca9f
......@@ -77,6 +77,16 @@ handle_connection (guint sock)
if (!nice_udp_socket_factory_make (&man, &udpsock, &sin))
goto OUT;
// send local candidate
line = g_strdup_printf ("H/\n",
ntohs (udpsock.addr.sin_port));
if (write (sock, line, strlen (line)) != strlen (line))
g_assert_not_reached ();
g_free (line);
// copy remote candidate address into sin
sin.sin_addr.s_addr = htonl (candidate->addr.addr_ipv4);
sin.sin_port = htons (candidate->port);
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment