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
f4bdeb5d
Commit
f4bdeb5d
authored
Apr 08, 2020
by
Fabrice Bellet
Committed by
Olivier Crête
May 04, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
discovery: add the agent pointer to turn debug messages
parent
66229223
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
4 deletions
+7
-4
agent/discovery.c
agent/discovery.c
+7
-4
No files found.
agent/discovery.c
View file @
f4bdeb5d
...
@@ -149,7 +149,7 @@ void discovery_prune_socket (NiceAgent *agent, NiceSocket *sock)
...
@@ -149,7 +149,7 @@ void discovery_prune_socket (NiceAgent *agent, NiceSocket *sock)
*/
*/
void
refresh_free
(
NiceAgent
*
agent
,
CandidateRefresh
*
cand
)
void
refresh_free
(
NiceAgent
*
agent
,
CandidateRefresh
*
cand
)
{
{
nice_debug
(
"
Freeing candidate refresh %p"
,
cand
);
nice_debug
(
"
Agent %p : Freeing candidate refresh %p"
,
agent
,
cand
);
agent
->
refresh_list
=
g_slist_remove
(
agent
->
refresh_list
,
cand
);
agent
->
refresh_list
=
g_slist_remove
(
agent
->
refresh_list
,
cand
);
...
@@ -178,7 +178,8 @@ static gboolean on_refresh_remove_timeout (NiceAgent *agent,
...
@@ -178,7 +178,8 @@ static gboolean on_refresh_remove_timeout (NiceAgent *agent,
{
{
StunTransactionId
id
;
StunTransactionId
id
;
nice_debug
(
"TURN deallocate for refresh %p timed out"
,
cand
);
nice_debug
(
"Agent %p : TURN deallocate for refresh %p timed out"
,
agent
,
cand
);
stun_message_id
(
&
cand
->
stun_message
,
id
);
stun_message_id
(
&
cand
->
stun_message
,
id
);
stun_agent_forget_transaction
(
&
cand
->
stun_agent
,
id
);
stun_agent_forget_transaction
(
&
cand
->
stun_agent
,
id
);
...
@@ -187,7 +188,8 @@ static gboolean on_refresh_remove_timeout (NiceAgent *agent,
...
@@ -187,7 +188,8 @@ static gboolean on_refresh_remove_timeout (NiceAgent *agent,
break
;
break
;
}
}
case
STUN_USAGE_TIMER_RETURN_RETRANSMIT
:
case
STUN_USAGE_TIMER_RETURN_RETRANSMIT
:
nice_debug
(
"Retransmitting TURN deallocate for refresh %p"
,
cand
);
nice_debug
(
"Agent %p : Retransmitting TURN deallocate for refresh %p"
,
agent
,
cand
);
agent_socket_send
(
cand
->
nicesock
,
&
cand
->
server
,
agent_socket_send
(
cand
->
nicesock
,
&
cand
->
server
,
stun_message_length
(
&
cand
->
stun_message
),
(
gchar
*
)
cand
->
stun_buffer
);
stun_message_length
(
&
cand
->
stun_message
),
(
gchar
*
)
cand
->
stun_buffer
);
...
@@ -220,7 +222,8 @@ static gboolean refresh_remove_async (NiceAgent *agent, gpointer pointer)
...
@@ -220,7 +222,8 @@ static gboolean refresh_remove_async (NiceAgent *agent, gpointer pointer)
CandidateRefresh
*
cand
=
(
CandidateRefresh
*
)
pointer
;
CandidateRefresh
*
cand
=
(
CandidateRefresh
*
)
pointer
;
StunUsageTurnCompatibility
turn_compat
=
agent_to_turn_compatibility
(
agent
);
StunUsageTurnCompatibility
turn_compat
=
agent_to_turn_compatibility
(
agent
);
nice_debug
(
"Sending request to remove TURN allocation for refresh %p"
,
cand
);
nice_debug
(
"Agent %p : Sending request to remove TURN allocation "
"for refresh %p"
,
agent
,
cand
);
if
(
cand
->
timer_source
!=
NULL
)
{
if
(
cand
->
timer_source
!=
NULL
)
{
g_source_destroy
(
cand
->
timer_source
);
g_source_destroy
(
cand
->
timer_source
);
...
...
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