Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
BC
public
mediastreamer2
Commits
5837b2c2
Commit
5837b2c2
authored
Dec 10, 2014
by
jehan
Browse files
add ice check list getter on ufrag/passwd
parent
350bc637
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
28 additions
and
0 deletions
+28
-0
include/mediastreamer2/ice.h
include/mediastreamer2/ice.h
+18
-0
src/voip/ice.c
src/voip/ice.c
+10
-0
No files found.
include/mediastreamer2/ice.h
View file @
5837b2c2
...
...
@@ -374,6 +374,24 @@ MS2_PUBLIC bool_t ice_session_remote_credentials_changed(IceSession *session, co
*/
MS2_PUBLIC
void
ice_session_set_remote_credentials
(
IceSession
*
session
,
const
char
*
ufrag
,
const
char
*
pwd
);
/**
* get the remote ufrag of an ICE check list.
*
* @param cl A pointer to a check list
*
* This function is to be called once the remote credentials have been received via SDP.
*/
MS2_PUBLIC
const
char
*
ice_check_list_set_remote_ufrag
(
const
IceCheckList
*
cl
);
/**
* get the remote pwd of an ICE check list.
*
* @param cl A pointer to a check list
*
* This function is to be called once the remote credentials have been received via SDP.
*/
MS2_PUBLIC
const
char
*
ice_check_list_set_remote_pwd
(
const
IceCheckList
*
cl
);
/**
* Define the maximum number of connectivity checks that will be performed by the agent.
*
...
...
src/voip/ice.c
View file @
5837b2c2
...
...
@@ -500,6 +500,16 @@ void ice_check_list_set_remote_credentials(IceCheckList *cl, const char *ufrag,
ice_set_credentials
(
&
cl
->
remote_ufrag
,
&
cl
->
remote_pwd
,
ufrag
,
pwd
);
}
const
char
*
ice_check_list_get_remote_ufrag
(
const
IceCheckList
*
cl
)
{
return
cl
->
remote_ufrag
;
}
const
char
*
ice_check_list_get_remote_pwd
(
const
IceCheckList
*
cl
)
{
return
cl
->
remote_pwd
;
}
bool_t
ice_check_list_default_local_candidate
(
const
IceCheckList
*
cl
,
const
char
**
rtp_addr
,
int
*
rtp_port
,
const
char
**
rtcp_addr
,
int
*
rtcp_port
)
{
IceCandidate
*
candidate
=
NULL
;
...
...
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