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
ab9bf4a2
Commit
ab9bf4a2
authored
Sep 10, 2008
by
Youness Alaoui
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add a long term credential flag for relay information
parent
67de9fcd
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
2 deletions
+9
-2
agent/agent.c
agent/agent.c
+6
-1
agent/agent.h
agent/agent.h
+2
-1
agent/component.h
agent/component.h
+1
-0
No files found.
agent/agent.c
View file @
ab9bf4a2
...
...
@@ -729,7 +729,8 @@ nice_agent_add_stream (
NICEAPI_EXPORT
void
nice_agent_set_relay_info
(
NiceAgent
*
agent
,
guint
stream_id
,
guint
component_id
,
const
gchar
*
server_ip
,
guint
server_port
,
const
gchar
*
username
,
const
gchar
*
password
)
const
gchar
*
username
,
const
gchar
*
password
,
gboolean
long_term_credentials
)
{
Component
*
component
=
NULL
;
...
...
@@ -743,11 +744,15 @@ NICEAPI_EXPORT void nice_agent_set_relay_info(NiceAgent *agent,
nice_address_set_port
(
&
component
->
turn_server
,
server_port
);
}
g_free
(
component
->
turn_username
);
component
->
turn_username
=
g_strdup
(
username
);
g_free
(
component
->
turn_password
);
component
->
turn_password
=
g_strdup
(
password
);
component
->
turn_long_term
=
long_term_credentials
;
}
g_static_rec_mutex_unlock
(
&
agent
->
mutex
);
}
...
...
agent/agent.h
View file @
ab9bf4a2
...
...
@@ -146,7 +146,8 @@ void nice_agent_set_relay_info(
const
gchar
*
server_ip
,
guint
server_port
,
const
gchar
*
username
,
const
gchar
*
password
);
const
gchar
*
password
,
gboolean
long_term_credentials
);
void
nice_agent_gather_candidates
(
...
...
agent/component.h
View file @
ab9bf4a2
...
...
@@ -85,6 +85,7 @@ struct _Component
NiceAddress
turn_server
;
/**< TURN server address */
gchar
*
turn_username
;
/**< TURN username */
gchar
*
turn_password
;
/**< TURN password */
gboolean
turn_long_term
;
/**< TURN long term credentials */
CandidatePair
selected_pair
;
/**< independent from checklists,
see ICE 11.1. "Sending Media" (ID-19) */
gboolean
media_after_tick
;
/**< true if media received since last
...
...
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