From 4ba1a4b0b4488e5058af67b789187735b529075e Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Fri, 21 Jan 2005 22:08:15 +0000 Subject: add infrastrtcur for creating and sending DNS packets git-svn-id: file:///home/lennart/svn/public/avahi/trunk@10 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe --- main.c | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'main.c') diff --git a/main.c b/main.c index d8c2065..b366eb5 100644 --- a/main.c +++ b/main.c @@ -20,15 +20,16 @@ int main(int argc, char *argv[]) { flx_server_add_text(flx, 0, 0, AF_UNSPEC, FALSE, NULL, "hallo"); - k = flx_key_new("cocaine.local.", FLX_DNS_CLASS_IN, FLX_DNS_TYPE_A); - flx_server_send_query(flx, 0, AF_UNSPEC, k); - flx_key_unref(k); - loop = g_main_loop_new(NULL, FALSE); - g_timeout_add(5000, timeout, loop); + g_timeout_add(1000, timeout, loop); g_main_loop_run(loop); + + k = flx_key_new("cocaine.local.", FLX_DNS_CLASS_IN, FLX_DNS_TYPE_A); + flx_server_send_query(flx, 0, AF_UNSPEC, k); + flx_key_unref(k); + g_main_loop_unref(loop); flx_server_dump(flx, stdout); -- cgit