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
2dff1e17
Commit
2dff1e17
authored
May 24, 2009
by
Youness Alaoui
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
unse the timer's source if they return FALSE
parent
6b56e136
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
28 additions
and
9 deletions
+28
-9
TODO
TODO
+0
-1
agent/conncheck.c
agent/conncheck.c
+14
-8
agent/discovery.c
agent/discovery.c
+7
-0
socket/turn.c
socket/turn.c
+7
-0
No files found.
TODO
View file @
2dff1e17
check for the cookie and act accordingly for incoming messages.
unset the timer's source if they return FALSE
channel bind have a 10 minutes expiration :@
nice_socket_recv returns -1 means we must close the nice_socket and stop all connchecks/candidates and reelect if was eleected...
Add HTTP Digest support
...
...
agent/conncheck.c
View file @
2dff1e17
...
...
@@ -662,8 +662,14 @@ static gboolean priv_conn_keepalive_tick (gpointer pointer)
g_static_rec_mutex_lock
(
&
agent
->
mutex
);
ret
=
priv_conn_keepalive_tick_unlocked
(
agent
);
if
(
ret
==
FALSE
)
{
if
(
agent
->
keepalive_timer_source
)
{
g_source_destroy
(
agent
->
keepalive_timer_source
);
g_source_unref
(
agent
->
keepalive_timer_source
);
agent
->
keepalive_timer_source
=
NULL
;
}
}
g_static_rec_mutex_unlock
(
&
agent
->
mutex
);
return
ret
;
}
...
...
@@ -756,6 +762,12 @@ static void priv_turn_allocate_refresh_tick_unlocked (CandidateRefresh *cand)
nice_debug
(
"Agent %p : Sending allocate Refresh %d"
,
cand
->
agent
,
buffer_len
);
if
(
cand
->
tick_source
!=
NULL
)
{
g_source_destroy
(
cand
->
tick_source
);
g_source_unref
(
cand
->
tick_source
);
cand
->
tick_source
=
NULL
;
}
if
(
buffer_len
>
0
)
{
stun_timer_start
(
&
cand
->
timer
);
...
...
@@ -763,12 +775,6 @@ static void priv_turn_allocate_refresh_tick_unlocked (CandidateRefresh *cand)
nice_socket_send
(
cand
->
nicesock
,
&
cand
->
server
,
buffer_len
,
(
gchar
*
)
cand
->
stun_buffer
);
if
(
cand
->
tick_source
!=
NULL
)
{
g_source_destroy
(
cand
->
tick_source
);
g_source_unref
(
cand
->
tick_source
);
cand
->
tick_source
=
NULL
;
}
cand
->
tick_source
=
agent_timeout_add_with_context
(
cand
->
agent
,
stun_timer_remainder
(
&
cand
->
timer
),
priv_turn_allocate_refresh_retransmissions_tick
,
cand
);
...
...
agent/discovery.c
View file @
2dff1e17
...
...
@@ -975,6 +975,13 @@ static gboolean priv_discovery_tick (gpointer pointer)
g_static_rec_mutex_lock
(
&
agent
->
mutex
);
ret
=
priv_discovery_tick_unlocked
(
pointer
);
if
(
ret
==
FALSE
)
{
if
(
agent
->
discovery_timer_source
!=
NULL
)
{
g_source_destroy
(
agent
->
discovery_timer_source
);
g_source_unref
(
agent
->
discovery_timer_source
);
agent
->
discovery_timer_source
=
NULL
;
}
}
g_static_rec_mutex_unlock
(
&
agent
->
mutex
);
return
ret
;
...
...
socket/turn.c
View file @
2dff1e17
...
...
@@ -660,6 +660,13 @@ priv_retransmissions_tick (gpointer pointer)
g_static_rec_mutex_lock
(
&
priv
->
nice
->
mutex
);
ret
=
priv_retransmissions_tick_unlocked
(
priv
);
if
(
ret
==
FALSE
)
{
if
(
priv
->
tick_source
!=
NULL
)
{
g_source_destroy
(
priv
->
tick_source
);
g_source_unref
(
priv
->
tick_source
);
priv
->
tick_source
=
NULL
;
}
}
g_static_rec_mutex_unlock
(
&
priv
->
nice
->
mutex
);
return
ret
;
...
...
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