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
a38c2adf
Commit
a38c2adf
authored
Jan 03, 2019
by
Olivier Crête
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tests/test-different-number-streams: Make it work with only localhost
parent
02de1fa1
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
0 deletions
+10
-0
tests/test-different-number-streams.c
tests/test-different-number-streams.c
+10
-0
No files found.
tests/test-different-number-streams.c
View file @
a38c2adf
...
@@ -73,6 +73,8 @@ int main (void)
...
@@ -73,6 +73,8 @@ int main (void)
guint
ls_id
,
rs_id_1
,
rs_id_2
;
guint
ls_id
,
rs_id_1
,
rs_id_2
;
gchar
*
lufrag
=
NULL
,
*
lpassword
=
NULL
;
gchar
*
lufrag
=
NULL
,
*
lpassword
=
NULL
;
gchar
*
rufrag1
=
NULL
,
*
rpassword1
=
NULL
,
*
rufrag2
=
NULL
,
*
rpassword2
=
NULL
;
gchar
*
rufrag1
=
NULL
,
*
rpassword1
=
NULL
,
*
rufrag2
=
NULL
,
*
rpassword2
=
NULL
;
NiceAddress
*
addr
;
#ifdef G_OS_WIN32
#ifdef G_OS_WIN32
WSADATA
w
;
WSADATA
w
;
...
@@ -80,12 +82,18 @@ int main (void)
...
@@ -80,12 +82,18 @@ int main (void)
WSAStartup
(
0x0202
,
&
w
);
WSAStartup
(
0x0202
,
&
w
);
#endif
#endif
/* Initialize nice agents */
addr
=
nice_address_new
();
nice_address_set_from_string
(
addr
,
"127.0.0.1"
);
global_mainloop
=
g_main_loop_new
(
NULL
,
FALSE
);
global_mainloop
=
g_main_loop_new
(
NULL
,
FALSE
);
/* step: create the agents L and R */
/* step: create the agents L and R */
lagent
=
nice_agent_new
(
g_main_loop_get_context
(
global_mainloop
),
lagent
=
nice_agent_new
(
g_main_loop_get_context
(
global_mainloop
),
NICE_COMPATIBILITY_GOOGLE
);
NICE_COMPATIBILITY_GOOGLE
);
g_debug
(
"lagent: %p"
,
lagent
);
g_debug
(
"lagent: %p"
,
lagent
);
nice_agent_add_local_address
(
lagent
,
addr
);
nice_agent_set_software
(
lagent
,
"test-different-number-streams, Left Agent"
);
nice_agent_set_software
(
lagent
,
"test-different-number-streams, Left Agent"
);
g_object_set
(
G_OBJECT
(
lagent
),
"ice-tcp"
,
FALSE
,
NULL
);
g_object_set
(
G_OBJECT
(
lagent
),
"ice-tcp"
,
FALSE
,
NULL
);
g_object_set
(
G_OBJECT
(
lagent
),
"controlling-mode"
,
TRUE
,
NULL
);
g_object_set
(
G_OBJECT
(
lagent
),
"controlling-mode"
,
TRUE
,
NULL
);
...
@@ -98,6 +106,8 @@ int main (void)
...
@@ -98,6 +106,8 @@ int main (void)
ragent
=
nice_agent_new
(
g_main_loop_get_context
(
global_mainloop
),
ragent
=
nice_agent_new
(
g_main_loop_get_context
(
global_mainloop
),
NICE_COMPATIBILITY_GOOGLE
);
NICE_COMPATIBILITY_GOOGLE
);
g_debug
(
"ragent: %p"
,
ragent
);
g_debug
(
"ragent: %p"
,
ragent
);
nice_agent_add_local_address
(
ragent
,
addr
);
nice_agent_set_software
(
ragent
,
"test-different-number-streams, Right Agent"
);
nice_agent_set_software
(
ragent
,
"test-different-number-streams, Right Agent"
);
g_object_set
(
G_OBJECT
(
ragent
),
"ice-tcp"
,
FALSE
,
NULL
);
g_object_set
(
G_OBJECT
(
ragent
),
"ice-tcp"
,
FALSE
,
NULL
);
g_object_set
(
G_OBJECT
(
ragent
),
"controlling-mode"
,
FALSE
,
NULL
);
g_object_set
(
G_OBJECT
(
ragent
),
"controlling-mode"
,
FALSE
,
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