X-Git-Url: http://git.meshlink.io/?a=blobdiff_plain;f=main.c;fp=main.c;h=6f82d25f99f070019699abc543f7829c0dc879ff;hb=4aa744ffac20c7b5e18cb3b23e5dbac8221c0043;hp=367dcd3dcb2700f975e981ec444d93587adca0ec;hpb=8e7f83aa5b6d910e80c56b31f4eb79b02e7ca67b;p=catta diff --git a/main.c b/main.c index 367dcd3..6f82d25 100644 --- a/main.c +++ b/main.c @@ -58,21 +58,21 @@ int main(int argc, char *argv[]) { flx_server_add_text(flx, 0, 0, AF_UNSPEC, FALSE, NULL, "hallo"); - k = flx_key_new("_http._tcp.local.", FLX_DNS_CLASS_IN, FLX_DNS_TYPE_PTR); - s = flx_subscription_new(flx, k, 0, AF_UNSPEC, subscription, NULL); - flx_key_unref(k); +/* k = flx_key_new("_http._tcp.local.", FLX_DNS_CLASS_IN, FLX_DNS_TYPE_PTR); */ +/* s = flx_subscription_new(flx, k, 0, AF_UNSPEC, subscription, NULL); */ +/* flx_key_unref(k); */ loop = g_main_loop_new(NULL, FALSE); - g_timeout_add(1000*60, quit_timeout, loop); + g_timeout_add(1000*30, quit_timeout, loop); g_timeout_add(1000, send_timeout, flx); - g_timeout_add(1000*10, dump_timeout, flx); + g_timeout_add(1000*20, dump_timeout, flx); g_main_loop_run(loop); g_main_loop_unref(loop); - flx_subscription_free(s); +/* flx_subscription_free(s); */ flx_server_free(flx); return 0;