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
550a7081
Commit
550a7081
authored
Feb 16, 2007
by
Dafydd Harries
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update comments
darcs-hash:20070216111757-c9803-4ac014cfa2374d6a4e1984bfda292240dbe7e634.gz
parent
a00367b2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
3 deletions
+10
-3
agent/agent.c
agent/agent.c
+10
-3
No files found.
agent/agent.c
View file @
550a7081
...
@@ -352,6 +352,7 @@ nice_agent_add_local_host_candidate (
...
@@ -352,6 +352,7 @@ nice_agent_add_local_host_candidate (
nice_rng_generate_bytes_print
(
rng
,
8
,
candidate
->
password
);
nice_rng_generate_bytes_print
(
rng
,
8
,
candidate
->
password
);
nice_rng_free
(
rng
);
nice_rng_free
(
rng
);
/* allocate socket */
/* XXX: handle error */
/* XXX: handle error */
if
(
!
nice_udp_socket_factory_make
(
agent
->
socket_factory
,
if
(
!
nice_udp_socket_factory_make
(
agent
->
socket_factory
,
&
(
candidate
->
sock
),
address
))
&
(
candidate
->
sock
),
address
))
...
@@ -512,7 +513,7 @@ nice_agent_add_remote_candidate (
...
@@ -512,7 +513,7 @@ nice_agent_add_remote_candidate (
candidate
=
nice_candidate_new
(
type
);
candidate
=
nice_candidate_new
(
type
);
candidate
->
stream_id
=
stream_id
;
candidate
->
stream_id
=
stream_id
;
candidate
->
component_id
=
component_id
;
candidate
->
component_id
=
component_id
;
/* do remote candidates need IDs? */
/*
XXX:
do remote candidates need IDs? */
candidate
->
id
=
0
;
candidate
->
id
=
0
;
candidate
->
addr
=
*
addr
;
candidate
->
addr
=
*
addr
;
strncpy
(
candidate
->
username
,
username
,
sizeof
(
candidate
->
username
));
strncpy
(
candidate
->
username
,
username
,
sizeof
(
candidate
->
username
));
...
@@ -615,8 +616,10 @@ _handle_stun_binding_request (
...
@@ -615,8 +616,10 @@ _handle_stun_binding_request (
goto
ERROR
;
goto
ERROR
;
/* validate username */
/* validate username */
/* XXX: what about the case where the username uniquely identifies a remote
/* XXX: Should first try and find a remote candidate with a matching
* candidate, but the transport address is not the one we expected?
* transport address, and fall back to matching on username only after that.
* That way, we know to always generate a new remote candidate if the
* transport address didn't match.
*/
*/
for
(
i
=
agent
->
remote_candidates
;
i
;
i
=
i
->
next
)
for
(
i
=
agent
->
remote_candidates
;
i
;
i
=
i
->
next
)
...
@@ -671,6 +674,10 @@ RESPOND:
...
@@ -671,6 +674,10 @@ RESPOND:
#endif
#endif
/* update candidate/peer affinity */
/* update candidate/peer affinity */
/* Note that @from might be different to @remote->addr; for ICE, this
* (always?) creates a new peer-reflexive remote candidate (§7.2).
*/
/* XXX: test case where @from != @remote->addr. */
component
->
active_candidate
=
local
;
component
->
active_candidate
=
local
;
component
->
peer_addr
=
from
;
component
->
peer_addr
=
from
;
...
...
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