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
bde24e05
Commit
bde24e05
authored
Jun 01, 2009
by
Olivier Crête
Committed by
Youness Alaoui
Jun 02, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use thread-safe version of GUPnP Simple IGD
parent
07e83589
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
agent/agent-priv.h
agent/agent-priv.h
+2
-2
agent/agent.c
agent/agent.c
+2
-2
No files found.
agent/agent-priv.h
View file @
bde24e05
...
...
@@ -61,7 +61,7 @@
#include "stun/usages/ice.h"
#ifdef HAVE_GUPNP
#include <libgupnp-igd/gupnp-simple-igd.h>
#include <libgupnp-igd/gupnp-simple-igd
-thread
.h>
#endif
/* XXX: starting from ICE ID-18, Ta SHOULD now be set according
...
...
@@ -113,7 +113,7 @@ struct _NiceAgent
NiceCompatibility
compatibility
;
/* property: Compatibility mode */
StunAgent
stun_agent
;
/* STUN agent */
#ifdef HAVE_GUPNP
GUPnPSimpleIgd
*
upnp
;
/* GUPnP Single IGD agent */
GUPnPSimpleIgd
Thread
*
upnp
;
/* GUPnP Single IGD agent */
gboolean
upnp_enabled
;
/* whether UPnP discovery is enabled */
guint
upnp_timeout
;
/* UPnP discovery timeout */
GSList
*
upnp_mapping
;
/* list of Candidates being mapped */
...
...
agent/agent.c
View file @
bde24e05
...
...
@@ -1286,7 +1286,7 @@ nice_agent_gather_candidates (
priv_free_upnp
(
agent
);
if
(
agent
->
upnp_enabled
)
{
agent
->
upnp
=
gupnp_simple_igd_
new
(
agent
->
main_context
);
agent
->
upnp
=
gupnp_simple_igd_
thread_new
(
);
agent
->
upnp_timer_source
=
agent_timeout_add_with_context
(
agent
,
agent
->
upnp_timeout
,
priv_upnp_timeout_cb
,
agent
);
...
...
@@ -1349,7 +1349,7 @@ nice_agent_gather_candidates (
NiceAddress
*
addr
=
nice_address_dup
(
&
host_candidate
->
base_addr
);
nice_debug
(
"Agent %p: Adding UPnP port %s:%d"
,
agent
,
local_ip
,
nice_address_get_port
(
&
host_candidate
->
base_addr
));
gupnp_simple_igd_add_port
(
agent
->
upnp
,
"UDP"
,
gupnp_simple_igd_add_port
(
GUPNP_SIMPLE_IGD
(
agent
->
upnp
)
,
"UDP"
,
0
,
local_ip
,
nice_address_get_port
(
&
host_candidate
->
base_addr
),
0
,
PACKAGE_STRING
);
agent
->
upnp_mapping
=
g_slist_prepend
(
agent
->
upnp_mapping
,
addr
);
...
...
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