Commit c4ad6fbc authored by Youness Alaoui's avatar Youness Alaoui

test-fullmode: Add a USE_RELIABLE option to enable/disable reliable mode

parent 1585d259
......@@ -48,6 +48,7 @@
#define USE_LOOPBACK 1
#define USE_PROXY 0
#define USE_UPNP 0
#define USE_RELIABLE 1
#define TEST_GOOGLE 0
#define PROXY_IP "127.0.0.1"
......@@ -746,8 +747,18 @@ int main (void)
*/
/* step: create the agents L and R */
lagent = nice_agent_new_reliable (g_main_loop_get_context (global_mainloop), NICE_COMPATIBILITY);
ragent = nice_agent_new_reliable (g_main_loop_get_context (global_mainloop), NICE_COMPATIBILITY);
#if USE_RELIABLE
lagent = nice_agent_new_reliable (g_main_loop_get_context (global_mainloop),
NICE_COMPATIBILITY);
ragent = nice_agent_new_reliable (g_main_loop_get_context (global_mainloop),
NICE_COMPATIBILITY);
#else
lagent = nice_agent_new (g_main_loop_get_context (global_mainloop),
NICE_COMPATIBILITY);
ragent = nice_agent_new (g_main_loop_get_context (global_mainloop),
NICE_COMPATIBILITY);
#endif
nice_agent_set_software (lagent, "Test-fullmode, Left Agent");
nice_agent_set_software (ragent, "Test-fullmode, Right Agent");
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment