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
6c8856bb
Commit
6c8856bb
authored
Sep 19, 2014
by
Philip Withnall
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
agent: Factor out state transition to FAILED for CandidateCheckPairs
This introduces no functional changes.
parent
e3dac3eb
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
13 deletions
+19
-13
agent/conncheck.c
agent/conncheck.c
+19
-13
No files found.
agent/conncheck.c
View file @
6c8856bb
...
...
@@ -241,6 +241,24 @@ static void priv_conn_check_unfreeze_related (NiceAgent *agent, Stream *stream,
priv_conn_check_unfreeze_next
(
agent
);
}
static
void
candidate_check_pair_fail
(
Stream
*
stream
,
NiceAgent
*
agent
,
CandidateCheckPair
*
p
)
{
StunTransactionId
id
;
Component
*
component
;
component
=
stream_find_component_by_id
(
stream
,
p
->
component_id
);
p
->
state
=
NICE_CHECK_FAILED
;
nice_debug
(
"Agent %p : pair %p state FAILED"
,
agent
,
p
);
stun_message_id
(
&
p
->
stun_message
,
id
);
stun_agent_forget_transaction
(
&
component
->
stun_agent
,
id
);
p
->
stun_message
.
buffer
=
NULL
;
p
->
stun_message
.
buffer_len
=
0
;
}
/*
* Helper function for connectivity check timer callback that
* runs through the stream specific part of the state machine.
...
...
@@ -270,20 +288,8 @@ static gboolean priv_conn_check_tick_stream (Stream *stream, NiceAgent *agent, G
case
STUN_USAGE_TIMER_RETURN_TIMEOUT
:
{
/* case: error, abort processing */
StunTransactionId
id
;
Component
*
component
=
stream_find_component_by_id
(
stream
,
p
->
component_id
);
nice_debug
(
"Agent %p : Retransmissions failed, giving up on connectivity check %p"
,
agent
,
p
);
p
->
state
=
NICE_CHECK_FAILED
;
nice_debug
(
"Agent %p : pair %p state FAILED"
,
agent
,
p
);
stun_message_id
(
&
p
->
stun_message
,
id
);
stun_agent_forget_transaction
(
&
component
->
stun_agent
,
id
);
p
->
stun_message
.
buffer
=
NULL
;
p
->
stun_message
.
buffer_len
=
0
;
candidate_check_pair_fail
(
stream
,
agent
,
p
);
break
;
}
...
...
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