Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
libnice
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
cpp-libs
libnice
Commits
52f33087
Commit
52f33087
authored
Jun 29, 2009
by
Youness Alaoui
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix up a little the test program in the docs
parent
b978380c
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
4 deletions
+3
-4
agent/agent.h
agent/agent.h
+3
-4
No files found.
agent/agent.h
View file @
52f33087
...
...
@@ -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 (
l
agent), "component-state-changed",
g_signal_connect (G_OBJECT (agent), "component-state-changed",
G_CALLBACK (cb_component_state_changed), NULL);
g_signal_connect (G_OBJECT (
l
agent), "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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment