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
01d70b12
Commit
01d70b12
authored
Apr 18, 2014
by
Youness Alaoui
Committed by
Olivier Crête
May 17, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Return the right value in agent_socket_send when framing
parent
43f8691c
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
agent/agent.c
agent/agent.c
+5
-1
No files found.
agent/agent.c
View file @
01d70b12
...
@@ -5309,9 +5309,13 @@ agent_socket_send (NiceSocket *sock, const NiceAddress *addr, gsize len,
...
@@ -5309,9 +5309,13 @@ agent_socket_send (NiceSocket *sock, const NiceAddress *addr, gsize len,
guint16
rfc4571_frame
=
htons
(
len
);
guint16
rfc4571_frame
=
htons
(
len
);
GOutputVector
local_buf
[
2
]
=
{{
&
rfc4571_frame
,
2
},
{
buf
,
len
}};
GOutputVector
local_buf
[
2
]
=
{{
&
rfc4571_frame
,
2
},
{
buf
,
len
}};
NiceOutputMessage
local_message
=
{
local_buf
,
2
};
NiceOutputMessage
local_message
=
{
local_buf
,
2
};
gint
ret
;
/* ICE-TCP requires that all packets be framed with RFC4571 */
/* ICE-TCP requires that all packets be framed with RFC4571 */
return
nice_socket_send_messages_reliable
(
sock
,
addr
,
&
local_message
,
1
);
ret
=
nice_socket_send_messages_reliable
(
sock
,
addr
,
&
local_message
,
1
);
if
(
ret
==
1
)
return
len
;
return
ret
;
}
else
{
}
else
{
gssize
ret
=
nice_socket_send_reliable
(
sock
,
addr
,
len
,
buf
);
gssize
ret
=
nice_socket_send_reliable
(
sock
,
addr
,
len
,
buf
);
if
(
ret
<
0
)
if
(
ret
<
0
)
...
...
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