Commit 52f33087 authored by Youness Alaoui's avatar Youness Alaoui

fix up a little the test program in the docs

parent b978380c
......@@ -55,7 +55,6 @@
<example>
<title>Simple example on how to use libnice</title>
<programlisting>
NiceAddress base_addr;
guint stream_id;
gchar buffer[] = "hello world!";
GSList *lcands = NULL;
......@@ -66,9 +65,9 @@
// Connect the signals
g_signal_connect (G_OBJECT (agent), "candidate-gathering-done",
G_CALLBACK (cb_candidate_gathering_done), NULL);
g_signal_connect (G_OBJECT (lagent), "component-state-changed",
g_signal_connect (G_OBJECT (agent), "component-state-changed",
G_CALLBACK (cb_component_state_changed), NULL);
g_signal_connect (G_OBJECT (lagent), "new-selected-pair",
g_signal_connect (G_OBJECT (agent), "new-selected-pair",
G_CALLBACK (cb_new_selected_pair), NULL);
// Create a new stream with one component and start gathering candidates
......@@ -87,7 +86,7 @@
// ... Wait until the signal new-selected-pair is fired ...
// Send our message!
nice_agent_send (lagent, ls_id, 1, sizeof(buffer), buffer);
nice_agent_send (agent, stream_id, 1, sizeof(buffer), buffer);
// Anything received will be received through the cb_nice_recv callback
......
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