static void test_gupnp_simple_igd_random_no_conflict (void) { GUPnPSimpleIgd *igd = gupnp_simple_igd_new (); run_gupnp_simple_igd_test (NULL, igd, 0); g_object_unref (igd); }
static void test_gupnp_simple_igd_default_ctx (void) { GUPnPSimpleIgd *igd = gupnp_simple_igd_new (); run_gupnp_simple_igd_test (NULL, igd, INTERNAL_PORT); g_object_unref (igd); }
static void test_gupnp_simple_igd_dispose_removes (void) { GUPnPSimpleIgd *igd = gupnp_simple_igd_new (); dispose_removes = TRUE; run_gupnp_simple_igd_test (NULL, igd, INTERNAL_PORT); dispose_removes = FALSE; }
static void test_gupnp_simple_igd_empty_ip(void) { GUPnPSimpleIgd *igd = gupnp_simple_igd_new (); invalid_ip = ""; run_gupnp_simple_igd_test (NULL, igd, INTERNAL_PORT); invalid_ip = NULL; g_object_unref (igd); }
UPNPRouter() { //TODO: Map UPnP port std::thread m([=](){ GUPnPContextManager* mngr = gupnp_context_manager_create(0); g_signal_connect(mngr,"context-available",G_CALLBACK(context_found),0); igdContext = gupnp_simple_igd_new(); gtk_main(); }); m.detach(); }
static void test_gupnp_simple_igd_new (void) { GUPnPSimpleIgd *igd = gupnp_simple_igd_new (); GUPnPSimpleIgdThread *igdthread = gupnp_simple_igd_thread_new (); GUPnPSimpleIgdThread *igdthread1 = gupnp_simple_igd_thread_new (); g_object_unref (igd); g_object_unref (igdthread); g_object_unref (igdthread1); }
static void test_gupnp_simple_igd_custom_ctx (void) { GMainContext *mainctx = g_main_context_new (); GUPnPSimpleIgd *igd; g_main_context_push_thread_default (mainctx); igd = gupnp_simple_igd_new (); g_main_context_pop_thread_default (mainctx); run_gupnp_simple_igd_test (mainctx, igd, INTERNAL_PORT); g_object_unref (igd); g_main_context_unref (mainctx); }