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
c4968e09
Commit
c4968e09
authored
Apr 16, 2009
by
Youness Alaoui
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix confusing docs, addr_len is an IN and OUT variable...
parent
1a275592
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
7 deletions
+14
-7
agent/agent.c
agent/agent.c
+2
-1
stun/stunmessage.h
stun/stunmessage.h
+7
-4
stun/usages/bind.h
stun/usages/bind.h
+5
-2
No files found.
agent/agent.c
View file @
c4968e09
...
...
@@ -860,7 +860,8 @@ priv_add_new_candidate_discovery_stun (NiceAgent *agent,
stun_agent_init
(
&
cdisco
->
stun_agent
,
STUN_ALL_KNOWN_ATTRIBUTES
,
STUN_COMPATIBILITY_RFC3489
,
0
);
nice_debug
(
"Agent %p : Adding new srv-rflx candidate discovery %p
\n
"
,
agent
,
cdisco
);
nice_debug
(
"Agent %p : Adding new srv-rflx candidate discovery %p
\n
"
,
agent
,
cdisco
);
agent
->
discovery_list
=
modified_list
;
++
agent
->
discovery_unsched_items
;
}
...
...
stun/stunmessage.h
View file @
c4968e09
...
...
@@ -586,8 +586,9 @@ StunMessageReturn stun_message_find_string (const StunMessage *msg,
* @msg: The #StunMessage
* @type: The #StunAttribute to find
* @addr: The #sockaddr to be filled
* @addrlen: The size of the @addr variable. Will be set to the size of the
* extracted socket address.
* @addrlen: The size of the @addr variable. Must be set to the size of the
* @addr socket address and will be set to the size of the extracted socket
* address.
*
* Extracts a network address attribute from a STUN message.
*
...
...
@@ -604,7 +605,8 @@ StunMessageReturn stun_message_find_addr (const StunMessage *msg,
* @msg: The #StunMessage
* @type: The #StunAttribute to find
* @addr: The #sockaddr to be filled
* @addrlen: The size of the @addr variable. Will be set to the size of the
* @addrlen: The size of the @addr variable. Must be set to the size of the
* @addr socket address and will be set to the size of the
* extracted socket address.
*
* Extracts an obfuscated network address attribute from a STUN message.
...
...
@@ -622,7 +624,8 @@ StunMessageReturn stun_message_find_xor_addr (const StunMessage *msg,
* @msg: The #StunMessage
* @type: The #StunAttribute to find
* @addr: The #sockaddr to be filled
* @addrlen: The size of the @addr variable. Will be set to the size of the
* @addrlen: The size of the @addr variable. Must be set to the size of the
* @addr socket address and will be set to the size of the
* extracted socket address.
* @magic_cookie: The magic cookie to use to XOR the address.
*
...
...
stun/usages/bind.h
View file @
c4968e09
...
...
@@ -101,13 +101,16 @@ size_t stun_usage_bind_create (StunAgent *agent, StunMessage *msg,
* @msg: The #StunMessage to process
* @addr: A pointer to a #sockaddr structure to fill with the mapped address
* that the STUN server gives us
* @addrlen: The length of @addr
* @addrlen: The length of @add. rMust be set to the size of the @addr socket
* address and will be set to the actual length of the socket address.
* @alternate_server: A pointer to a #sockaddr structure to fill with the
* address of an alternate server to which we should send our new STUN
* binding request, in case the currently used STUN server is requesting the use
* of an alternate server. This argument will only be filled if the return value
* of the function is #STUN_USAGE_BIND_RETURN_ALTERNATE_SERVER
* @alternate_server_len: The length of @alternate_server
* @alternate_server_len: The length of @alternate_server. Must be set to
* the size of the @alternate_server socket address and will be set to the
* actual length of the socket address.
*
* Process a STUN binding response and extracts the mapped address from the STUN
* message. Also checks for the ALTERNATE-SERVER attribute.
...
...
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