+
+ /* Adding address with session */
+ test_session[1] = &test_addr[1];
+ create_test_address (&test_addr[1], "test1", test_session[1], "test1", strlen ("test1") + 1);
+ test_hello_address[1].peer = p[1].id;
+ test_hello_address[1].transport_name = test_addr[0].plugin;
+ test_hello_address[1].address = test_addr[0].addr;
+ test_hello_address[1].address_length = test_addr[0].addr_len;
+ GNUNET_ATS_address_add (sched_ats, &test_hello_address[1], test_session[1], test_ats_info, test_ats_count);
+
+
+ /* Change bandwidth preference */
+ GNUNET_ATS_performance_change_preference (perf_ats,
+ &p[0].id,
+ GNUNET_ATS_PREFERENCE_BANDWIDTH,(double) 1000, GNUNET_ATS_PREFERENCE_END);
+ GNUNET_ATS_performance_change_preference (perf_ats,
+ &p[1].id,
+ GNUNET_ATS_PREFERENCE_BANDWIDTH,(double) 1000, GNUNET_ATS_PREFERENCE_END);
+
+
+ /* Change latency preference */
+
+ GNUNET_ATS_performance_change_preference (perf_ats,
+ &p[0].id,
+ GNUNET_ATS_PREFERENCE_LATENCY,(double) 10, GNUNET_ATS_PREFERENCE_END);
+ GNUNET_ATS_performance_change_preference (perf_ats,
+ &p[1].id,
+ GNUNET_ATS_PREFERENCE_LATENCY,(double) 100, GNUNET_ATS_PREFERENCE_END);
+ GNUNET_SCHEDULER_add_delayed (SLEEP, &sleep_task, NULL);