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
9c57b011
Commit
9c57b011
authored
Jul 07, 2014
by
Olivier Crête
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
agent: Factor our writability signal
parent
8b216ccc
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
11 deletions
+15
-11
agent/agent.c
agent/agent.c
+15
-11
No files found.
agent/agent.c
View file @
9c57b011
...
...
@@ -1308,6 +1308,16 @@ nice_agent_set_property (
}
static
void
agent_signal_socket_writable
(
NiceAgent
*
agent
,
Component
*
component
)
{
g_cancellable_cancel
(
component
->
tcp_writable_cancellable
);
agent_queue_signal
(
agent
,
signals
[
SIGNAL_RELIABLE_TRANSPORT_WRITABLE
],
component
->
stream
->
id
,
component
->
id
);
}
static
void
pseudo_tcp_socket_create
(
NiceAgent
*
agent
,
Stream
*
stream
,
Component
*
component
)
{
...
...
@@ -1355,10 +1365,8 @@ pseudo_tcp_socket_opened (PseudoTcpSocket *sock, gpointer user_data)
nice_debug
(
"Agent %p: s%d:%d pseudo Tcp socket Opened"
,
agent
,
stream
->
id
,
component
->
id
);
g_cancellable_cancel
(
component
->
tcp_writable_cancellable
);
agent_queue_signal
(
agent
,
signals
[
SIGNAL_RELIABLE_TRANSPORT_WRITABLE
],
stream
->
id
,
component
->
id
);
agent_signal_socket_writable
(
agent
,
component
);
}
/* Will attempt to queue all @n_messages into the pseudo-TCP transmission
...
...
@@ -1614,9 +1622,8 @@ pseudo_tcp_socket_writable (PseudoTcpSocket *sock, gpointer user_data)
nice_debug
(
"Agent %p: s%d:%d pseudo Tcp socket writable"
,
agent
,
stream
->
id
,
component
->
id
);
g_cancellable_cancel
(
component
->
tcp_writable_cancellable
);
agent_queue_signal
(
agent
,
signals
[
SIGNAL_RELIABLE_TRANSPORT_WRITABLE
],
stream
->
id
,
component
->
id
);
agent_signal_socket_writable
(
agent
,
component
);
}
static
void
...
...
@@ -1749,9 +1756,7 @@ _tcp_sock_is_writable (NiceSocket *sock, gpointer user_data)
nice_debug
(
"Agent %p: s%d:%d Tcp socket writable"
,
agent
,
stream
->
id
,
component
->
id
);
g_cancellable_cancel
(
component
->
tcp_writable_cancellable
);
agent_queue_signal
(
agent
,
signals
[
SIGNAL_RELIABLE_TRANSPORT_WRITABLE
],
stream
->
id
,
component
->
id
);
agent_signal_socket_writable
(
agent
,
component
);
agent_unlock_and_emit
(
agent
);
}
...
...
@@ -1971,8 +1976,7 @@ void agent_signal_new_selected_pair (NiceAgent *agent, guint stream_id,
stream_id
,
component_id
,
lcandidate
->
foundation
,
rcandidate
->
foundation
);
if
(
agent
->
reliable
&&
nice_socket_is_reliable
(
lcandidate
->
sockptr
))
{
agent_queue_signal
(
agent
,
signals
[
SIGNAL_RELIABLE_TRANSPORT_WRITABLE
],
stream_id
,
component_id
);
agent_signal_socket_writable
(
agent
,
component
);
}
}
...
...
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