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
286b8120
Commit
286b8120
authored
Oct 22, 2008
by
Youness Alaoui
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update test-fullmode to work with the new set_relay_info API
parent
be03b19f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
13 deletions
+15
-13
agent/test-fullmode.c
agent/test-fullmode.c
+15
-13
No files found.
agent/test-fullmode.c
View file @
286b8120
...
...
@@ -68,11 +68,13 @@
#define TURN_PORT TSORG_PORT
#define TURN_USER TSORG_USER
#define TURN_PASS TSORG_PASS
#define TURN_TYPE NICE_RELAY_TYPE_UDP
#else
#define TURN_IP NUMB_IP
#define TURN_PORT NUMB_PORT
#define TURN_USER NUMB_USER
#define TURN_PASS NUMB_PASS
#define TURN_TYPE NICE_RELAY_TYPE_UDP
#endif
...
...
@@ -284,13 +286,13 @@ static int run_full_test (NiceAgent *lagent, NiceAgent *ragent, NiceAddress *bas
g_assert
(
rs_id
>
0
);
#if USE_TURN
nice_agent_set_relay_info
(
lagent
,
ls_id
,
1
,
TURN_IP
,
TURN_PORT
,
TURN_USER
,
TURN_PASS
);
TURN_IP
,
TURN_PORT
,
TURN_USER
,
TURN_PASS
,
TURN_TYPE
);
nice_agent_set_relay_info
(
lagent
,
ls_id
,
2
,
TURN_IP
,
TURN_PORT
,
TURN_USER
,
TURN_PASS
);
TURN_IP
,
TURN_PORT
,
TURN_USER
,
TURN_PASS
,
TURN_TYPE
);
nice_agent_set_relay_info
(
ragent
,
rs_id
,
1
,
TURN_IP
,
TURN_PORT
,
TURN_USER
,
TURN_PASS
);
TURN_IP
,
TURN_PORT
,
TURN_USER
,
TURN_PASS
,
TURN_TYPE
);
nice_agent_set_relay_info
(
ragent
,
rs_id
,
2
,
TURN_IP
,
TURN_PORT
,
TURN_USER
,
TURN_PASS
);
TURN_IP
,
TURN_PORT
,
TURN_USER
,
TURN_PASS
,
TURN_TYPE
);
#endif
...
...
@@ -426,13 +428,13 @@ static int run_full_test_delayed_answer (NiceAgent *lagent, NiceAgent *ragent, N
g_assert
(
rs_id
>
0
);
#if USE_TURN
nice_agent_set_relay_info
(
lagent
,
ls_id
,
1
,
TURN_IP
,
TURN_PORT
,
TURN_USER
,
TURN_PASS
);
TURN_IP
,
TURN_PORT
,
TURN_USER
,
TURN_PASS
,
TURN_TYPE
);
nice_agent_set_relay_info
(
lagent
,
ls_id
,
2
,
TURN_IP
,
TURN_PORT
,
TURN_USER
,
TURN_PASS
);
TURN_IP
,
TURN_PORT
,
TURN_USER
,
TURN_PASS
,
TURN_TYPE
);
nice_agent_set_relay_info
(
ragent
,
rs_id
,
1
,
TURN_IP
,
TURN_PORT
,
TURN_USER
,
TURN_PASS
);
TURN_IP
,
TURN_PORT
,
TURN_USER
,
TURN_PASS
,
TURN_TYPE
);
nice_agent_set_relay_info
(
ragent
,
rs_id
,
2
,
TURN_IP
,
TURN_PORT
,
TURN_USER
,
TURN_PASS
);
TURN_IP
,
TURN_PORT
,
TURN_USER
,
TURN_PASS
,
TURN_TYPE
);
#endif
...
...
@@ -585,9 +587,9 @@ static int run_full_test_wrong_password (NiceAgent *lagent, NiceAgent *ragent, N
g_assert
(
rs_id
>
0
);
#if USE_TURN
nice_agent_set_relay_info
(
lagent
,
ls_id
,
1
,
TURN_IP
,
TURN_PORT
,
TURN_USER
,
TURN_PASS
);
TURN_IP
,
TURN_PORT
,
TURN_USER
,
TURN_PASS
,
TURN_TYPE
);
nice_agent_set_relay_info
(
ragent
,
rs_id
,
1
,
TURN_IP
,
TURN_PORT
,
TURN_USER
,
TURN_PASS
);
TURN_IP
,
TURN_PORT
,
TURN_USER
,
TURN_PASS
,
TURN_TYPE
);
#endif
nice_agent_gather_candidates
(
lagent
,
ls_id
);
...
...
@@ -705,9 +707,9 @@ static int run_full_test_control_conflict (NiceAgent *lagent, NiceAgent *ragent,
g_assert
(
rs_id
>
0
);
#if USE_TURN
nice_agent_set_relay_info
(
lagent
,
ls_id
,
1
,
TURN_IP
,
TURN_PORT
,
TURN_USER
,
TURN_PASS
);
TURN_IP
,
TURN_PORT
,
TURN_USER
,
TURN_PASS
,
TURN_TYPE
);
nice_agent_set_relay_info
(
ragent
,
rs_id
,
1
,
TURN_IP
,
TURN_PORT
,
TURN_USER
,
TURN_PASS
);
TURN_IP
,
TURN_PORT
,
TURN_USER
,
TURN_PASS
,
TURN_TYPE
);
#endif
nice_agent_gather_candidates
(
lagent
,
ls_id
);
...
...
@@ -825,7 +827,7 @@ int main (void)
nice_agent_add_local_address
(
lagent
,
&
baseaddr
);
nice_agent_add_local_address
(
ragent
,
&
baseaddr
);
#else
if
(
!
nice_address_set_from_string
(
&
baseaddr
,
"192.168.1.1
06
"
))
if
(
!
nice_address_set_from_string
(
&
baseaddr
,
"192.168.1.1
10
"
))
g_assert_not_reached
();
nice_agent_add_local_address
(
lagent
,
&
baseaddr
);
nice_agent_add_local_address
(
ragent
,
&
baseaddr
);
...
...
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