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
f84214e2
Commit
f84214e2
authored
Dec 13, 2010
by
Youness Alaoui
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Rename tick_source into tick_source_channel_bind to make it more clear on what it does
parent
47e6a9b9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
14 deletions
+16
-14
socket/turn.c
socket/turn.c
+16
-14
No files found.
socket/turn.c
View file @
f84214e2
...
@@ -73,6 +73,7 @@ typedef struct {
...
@@ -73,6 +73,7 @@ typedef struct {
ChannelBinding
*
current_binding
;
ChannelBinding
*
current_binding
;
TURNMessage
*
current_binding_msg
;
TURNMessage
*
current_binding_msg
;
GSource
*
tick_source
;
GSource
*
tick_source
;
GSource
*
tick_source_channel_bind
;
NiceSocket
*
base_socket
;
NiceSocket
*
base_socket
;
NiceAddress
server_addr
;
NiceAddress
server_addr
;
uint8_t
*
username
;
uint8_t
*
username
;
...
@@ -196,10 +197,10 @@ socket_close (NiceSocket *sock)
...
@@ -196,10 +197,10 @@ socket_close (NiceSocket *sock)
NULL
);
NULL
);
g_list_free
(
priv
->
pending_bindings
);
g_list_free
(
priv
->
pending_bindings
);
if
(
priv
->
tick_source
!=
NULL
)
{
if
(
priv
->
tick_source
_channel_bind
!=
NULL
)
{
g_source_destroy
(
priv
->
tick_source
);
g_source_destroy
(
priv
->
tick_source
_channel_bind
);
g_source_unref
(
priv
->
tick_source
);
g_source_unref
(
priv
->
tick_source
_channel_bind
);
priv
->
tick_source
=
NULL
;
priv
->
tick_source
_channel_bind
=
NULL
;
}
}
for
(
i
=
g_queue_peek_head_link
(
priv
->
send_requests
);
i
;
i
=
i
->
next
)
{
for
(
i
=
g_queue_peek_head_link
(
priv
->
send_requests
);
i
;
i
=
i
->
next
)
{
...
@@ -702,10 +703,10 @@ priv_retransmissions_tick (gpointer pointer)
...
@@ -702,10 +703,10 @@ priv_retransmissions_tick (gpointer pointer)
ret
=
priv_retransmissions_tick_unlocked
(
priv
);
ret
=
priv_retransmissions_tick_unlocked
(
priv
);
if
(
ret
==
FALSE
)
{
if
(
ret
==
FALSE
)
{
if
(
priv
->
tick_source
!=
NULL
)
{
if
(
priv
->
tick_source
_channel_bind
!=
NULL
)
{
g_source_destroy
(
priv
->
tick_source
);
g_source_destroy
(
priv
->
tick_source
_channel_bind
);
g_source_unref
(
priv
->
tick_source
);
g_source_unref
(
priv
->
tick_source
_channel_bind
);
priv
->
tick_source
=
NULL
;
priv
->
tick_source
_channel_bind
=
NULL
;
}
}
}
}
agent_unlock
();
agent_unlock
();
...
@@ -716,17 +717,18 @@ priv_retransmissions_tick (gpointer pointer)
...
@@ -716,17 +717,18 @@ priv_retransmissions_tick (gpointer pointer)
static
void
static
void
priv_schedule_tick
(
TurnPriv
*
priv
)
priv_schedule_tick
(
TurnPriv
*
priv
)
{
{
if
(
priv
->
tick_source
!=
NULL
)
{
if
(
priv
->
tick_source
_channel_bind
!=
NULL
)
{
g_source_destroy
(
priv
->
tick_source
);
g_source_destroy
(
priv
->
tick_source
_channel_bind
);
g_source_unref
(
priv
->
tick_source
);
g_source_unref
(
priv
->
tick_source
_channel_bind
);
priv
->
tick_source
=
NULL
;
priv
->
tick_source
_channel_bind
=
NULL
;
}
}
if
(
priv
->
current_binding_msg
)
{
if
(
priv
->
current_binding_msg
)
{
guint
timeout
=
stun_timer_remainder
(
&
priv
->
current_binding_msg
->
timer
);
guint
timeout
=
stun_timer_remainder
(
&
priv
->
current_binding_msg
->
timer
);
if
(
timeout
>
0
)
{
if
(
timeout
>
0
)
{
priv
->
tick_source
=
agent_timeout_add_with_context
(
priv
->
nice
,
timeout
,
priv
->
tick_source_channel_bind
=
priv_retransmissions_tick
,
priv
);
agent_timeout_add_with_context
(
priv
->
nice
,
timeout
,
priv_retransmissions_tick
,
priv
);
}
else
{
}
else
{
priv_retransmissions_tick_unlocked
(
priv
);
priv_retransmissions_tick_unlocked
(
priv
);
}
}
...
...
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