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
844d2e72
Commit
844d2e72
authored
Apr 05, 2014
by
Youness Alaoui
Committed by
Olivier Crête
May 15, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Once a ice-tcp connection is established, it should work like any other, so just send to it
parent
2dea9ea9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
20 deletions
+16
-20
agent/agent.c
agent/agent.c
+16
-20
No files found.
agent/agent.c
View file @
844d2e72
...
@@ -3515,28 +3515,24 @@ nice_agent_send_messages_nonblocking_internal (
...
@@ -3515,28 +3515,24 @@ nice_agent_send_messages_nonblocking_internal (
nice_address_get_port
(
&
component
->
selected_pair
.
remote
->
addr
));
nice_address_get_port
(
&
component
->
selected_pair
.
remote
->
addr
));
}
}
if
(
agent
->
reliable
)
{
if
(
agent
->
reliable
&&
if
(
!
nice_socket_is_reliable
(
component
->
selected_pair
.
local
->
sockptr
))
{
!
nice_socket_is_reliable
(
component
->
selected_pair
.
local
->
sockptr
))
{
if
(
component
->
tcp
!=
NULL
)
{
if
(
component
->
tcp
!=
NULL
)
{
/* Send on the pseudo-TCP socket. */
/* Send on the pseudo-TCP socket. */
n_sent
=
pseudo_tcp_socket_send_messages
(
component
->
tcp
,
messages
,
n_sent
=
pseudo_tcp_socket_send_messages
(
component
->
tcp
,
messages
,
n_messages
,
allow_partial
,
&
child_error
);
n_messages
,
allow_partial
,
&
child_error
);
adjust_tcp_clock
(
agent
,
stream
,
component
);
adjust_tcp_clock
(
agent
,
stream
,
component
);
if
(
!
pseudo_tcp_socket_can_send
(
component
->
tcp
))
if
(
!
pseudo_tcp_socket_can_send
(
component
->
tcp
))
g_cancellable_reset
(
component
->
tcp_writable_cancellable
);
g_cancellable_reset
(
component
->
tcp_writable_cancellable
);
if
(
n_sent
<
0
&&
!
g_error_matches
(
child_error
,
G_IO_ERROR
,
if
(
n_sent
<
0
&&
!
g_error_matches
(
child_error
,
G_IO_ERROR
,
G_IO_ERROR_WOULD_BLOCK
))
{
G_IO_ERROR_WOULD_BLOCK
))
{
/* Signal errors */
/* Signal errors */
priv_pseudo_tcp_error
(
agent
,
stream
,
component
);
priv_pseudo_tcp_error
(
agent
,
stream
,
component
);
}
}
else
{
g_set_error
(
&
child_error
,
G_IO_ERROR
,
G_IO_ERROR_FAILED
,
"Pseudo-TCP socket not connected."
);
}
}
}
else
{
}
else
{
g_set_error
(
&
child_error
,
G_IO_ERROR
,
G_IO_ERROR_FAILED
,
g_set_error
(
&
child_error
,
G_IO_ERROR
,
G_IO_ERROR_FAILED
,
"ICE-TCP not yet suppor
ted."
);
"Pseudo-TCP socket not connec
ted."
);
}
}
}
else
{
}
else
{
NiceSocket
*
sock
;
NiceSocket
*
sock
;
...
...
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