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

test client: send local candidate to server

darcs-hash:20070202083858-c9803-0efe33288abbdb8c9aa773493f512001eb259f0b.gz
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/127.0.0.1/%d/lala/titi\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