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
483a0fcc
Commit
483a0fcc
authored
Dec 12, 2013
by
Philip Withnall
Committed by
Olivier Crête
Dec 18, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
agent: Clarify valid range of stream and component IDs
Valid IDs will never be 0, which is convenient.
parent
19679283
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletion
+6
-1
agent/agent.h
agent/agent.h
+6
-1
No files found.
agent/agent.h
View file @
483a0fcc
...
@@ -53,6 +53,10 @@
...
@@ -53,6 +53,10 @@
* It will take care of discovering your local candidates and do
* It will take care of discovering your local candidates and do
* connectivity checks to create a stream of data between you and your peer.
* connectivity checks to create a stream of data between you and your peer.
*
*
* Streams and their components are referenced by integer IDs (with respect to a
* given #NiceAgent). These IDs are guaranteed to be positive (i.e. non-zero)
* for valid streams/components.
*
<example>
<example>
<title>Simple example on how to use libnice</title>
<title>Simple example on how to use libnice</title>
<programlisting>
<programlisting>
...
@@ -338,7 +342,8 @@ nice_agent_add_local_address (NiceAgent *agent, NiceAddress *addr);
...
@@ -338,7 +342,8 @@ nice_agent_add_local_address (NiceAgent *agent, NiceAddress *addr);
* @agent: The #NiceAgent Object
* @agent: The #NiceAgent Object
* @n_components: The number of components to add to the stream
* @n_components: The number of components to add to the stream
*
*
* Adds a data stream to @agent containing @n_components components.
* Adds a data stream to @agent containing @n_components components. The
* returned stream ID is guaranteed to be positive on success.
*
*
* Returns: The ID of the new stream, 0 on failure
* Returns: The ID of the new stream, 0 on failure
**/
**/
...
...
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