Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
libnice
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Analytics
Analytics
Repository
Value Stream
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
Olivier Crête
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
Hide 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