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
eb7c964d
Commit
eb7c964d
authored
Oct 16, 2008
by
Youness Alaoui
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add full support for refreshs as well as retransmissions of those turn refresh requests
parent
b1957e7e
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
265 additions
and
3 deletions
+265
-3
agent/agent-priv.h
agent/agent-priv.h
+1
-0
agent/agent.c
agent/agent.c
+5
-0
agent/conncheck.c
agent/conncheck.c
+259
-3
No files found.
agent/agent-priv.h
View file @
eb7c964d
...
@@ -88,6 +88,7 @@ struct _NiceAgent
...
@@ -88,6 +88,7 @@ struct _NiceAgent
GSource
*
discovery_timer_source
;
/**< source of discovery timer */
GSource
*
discovery_timer_source
;
/**< source of discovery timer */
GSource
*
conncheck_timer_source
;
/**< source of conncheck timer */
GSource
*
conncheck_timer_source
;
/**< source of conncheck timer */
GSource
*
keepalive_timer_source
;
/**< source of keepalive timer */
GSource
*
keepalive_timer_source
;
/**< source of keepalive timer */
GSList
*
refresh_list
;
/**< list of CandidateRefresh items */
guint64
tie_breaker
;
/**< tie breaker (ICE sect 5.2
guint64
tie_breaker
;
/**< tie breaker (ICE sect 5.2
"Determining Role" ID-19) */
"Determining Role" ID-19) */
GStaticRecMutex
mutex
;
/* Mutex used for thread-safe lib */
GStaticRecMutex
mutex
;
/* Mutex used for thread-safe lib */
...
...
agent/agent.c
View file @
eb7c964d
...
@@ -371,6 +371,8 @@ nice_agent_init (NiceAgent *agent)
...
@@ -371,6 +371,8 @@ nice_agent_init (NiceAgent *agent)
agent
->
discovery_timer_source
=
NULL
;
agent
->
discovery_timer_source
=
NULL
;
agent
->
conncheck_timer_source
=
NULL
;
agent
->
conncheck_timer_source
=
NULL
;
agent
->
keepalive_timer_source
=
NULL
;
agent
->
keepalive_timer_source
=
NULL
;
agent
->
refresh_list
=
NULL
;
agent
->
compatibility
=
NICE_COMPATIBILITY_DRAFT19
;
agent
->
compatibility
=
NICE_COMPATIBILITY_DRAFT19
;
stun_agent_init
(
&
agent
->
stun_agent
,
STUN_ALL_KNOWN_ATTRIBUTES
,
stun_agent_init
(
&
agent
->
stun_agent
,
STUN_ALL_KNOWN_ATTRIBUTES
,
...
@@ -935,6 +937,7 @@ nice_agent_remove_stream (
...
@@ -935,6 +937,7 @@ nice_agent_remove_stream (
/* note: remove items with matching stream_ids from both lists */
/* note: remove items with matching stream_ids from both lists */
conn_check_prune_stream
(
agent
,
stream
);
conn_check_prune_stream
(
agent
,
stream
);
discovery_prune_stream
(
agent
,
stream_id
);
discovery_prune_stream
(
agent
,
stream_id
);
refresh_prune_stream
(
agent
,
stream_id
);
/* remove the stream itself */
/* remove the stream itself */
for
(
i
=
stream
->
components
;
i
;
i
=
i
->
next
)
{
for
(
i
=
stream
->
components
;
i
;
i
=
i
->
next
)
{
...
@@ -1761,6 +1764,8 @@ nice_agent_dispose (GObject *object)
...
@@ -1761,6 +1764,8 @@ nice_agent_dispose (GObject *object)
/* step: free resources for the binding discovery timers */
/* step: free resources for the binding discovery timers */
discovery_free
(
agent
);
discovery_free
(
agent
);
g_assert
(
agent
->
discovery_list
==
NULL
);
g_assert
(
agent
->
discovery_list
==
NULL
);
refresh_free
(
agent
);
g_assert
(
agent
->
refresh_list
==
NULL
);
/* step: free resources for the connectivity check timers */
/* step: free resources for the connectivity check timers */
conn_check_free
(
agent
);
conn_check_free
(
agent
);
...
...
agent/conncheck.c
View file @
eb7c964d
This diff is collapsed.
Click to expand it.
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