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
cd255bdd
Commit
cd255bdd
authored
Apr 04, 2017
by
Olivier Crête
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
udp-turn: Add some const to internal APIs
parent
db05e8b0
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
9 deletions
+10
-9
agent/component.c
agent/component.c
+1
-1
socket/udp-turn.c
socket/udp-turn.c
+5
-5
socket/udp-turn.h
socket/udp-turn.h
+4
-3
No files found.
agent/component.c
View file @
cd255bdd
...
...
@@ -380,7 +380,7 @@ nice_component_restart (NiceComponent *cmp)
for
(
i
=
cmp
->
remote_candidates
;
i
;
i
=
i
->
next
)
{
NiceCandidate
*
candidate
=
i
->
data
;
/* note: do not remove the
local
candidate that is
/* note: do not remove the
remote
candidate that is
* currently part of the 'selected pair', see ICE
* 9.1.1.1. "ICE Restarts" (ID-19) */
if
(
candidate
==
cmp
->
selected_pair
.
remote
)
{
...
...
socket/udp-turn.c
View file @
cd255bdd
...
...
@@ -174,8 +174,8 @@ priv_send_data_queue_destroy (gpointer user_data)
NiceSocket
*
nice_udp_turn_socket_new
(
GMainContext
*
ctx
,
NiceAddress
*
addr
,
NiceSocket
*
base_socket
,
NiceAddress
*
server_addr
,
gchar
*
username
,
gchar
*
password
,
NiceSocket
*
base_socket
,
const
NiceAddress
*
server_addr
,
const
gchar
*
username
,
const
gchar
*
password
,
NiceTurnSocketCompatibility
compatibility
)
{
UdpTurnPriv
*
priv
;
...
...
@@ -1184,7 +1184,7 @@ nice_udp_turn_socket_parse_recv_message (NiceSocket *sock, NiceSocket **from_soc
gsize
nice_udp_turn_socket_parse_recv
(
NiceSocket
*
sock
,
NiceSocket
**
from_sock
,
NiceAddress
*
from
,
gsize
len
,
guint8
*
buf
,
NiceAddress
*
recv_from
,
guint8
*
_recv_buf
,
gsize
recv_len
)
const
NiceAddress
*
recv_from
,
const
guint8
*
_recv_buf
,
gsize
recv_len
)
{
UdpTurnPriv
*
priv
=
(
UdpTurnPriv
*
)
sock
->
priv
;
...
...
@@ -1194,8 +1194,8 @@ nice_udp_turn_socket_parse_recv (NiceSocket *sock, NiceSocket **from_sock,
ChannelBinding
*
binding
=
NULL
;
union
{
guint8
*
u8
;
guint16
*
u16
;
const
guint8
*
u8
;
const
guint16
*
u16
;
}
recv_buf
;
/* In the case of a reliable UDP-TURN-OVER-TCP (which means MS-TURN)
...
...
socket/udp-turn.h
View file @
cd255bdd
...
...
@@ -59,15 +59,16 @@ nice_udp_turn_socket_parse_recv_message (NiceSocket *sock, NiceSocket **from_soc
gsize
nice_udp_turn_socket_parse_recv
(
NiceSocket
*
sock
,
NiceSocket
**
from_sock
,
NiceAddress
*
from
,
gsize
len
,
guint8
*
buf
,
NiceAddress
*
recv_from
,
guint8
*
recv_buf
,
gsize
recv_len
);
const
NiceAddress
*
recv_from
,
const
guint8
*
recv_buf
,
gsize
recv_len
);
gboolean
nice_udp_turn_socket_set_peer
(
NiceSocket
*
sock
,
NiceAddress
*
peer
);
NiceSocket
*
nice_udp_turn_socket_new
(
GMainContext
*
ctx
,
NiceAddress
*
addr
,
NiceSocket
*
base_socket
,
NiceAddress
*
server_addr
,
gchar
*
username
,
gchar
*
password
,
NiceTurnSocketCompatibility
compatibility
);
NiceSocket
*
base_socket
,
const
NiceAddress
*
server_addr
,
const
gchar
*
username
,
const
gchar
*
password
,
NiceTurnSocketCompatibility
compatibility
);
void
nice_udp_turn_socket_set_ms_realm
(
NiceSocket
*
sock
,
StunMessage
*
msg
);
...
...
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