summaryrefslogtreecommitdiffstats
path: root/main.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2005-01-04 23:52:38 +0000
committerLennart Poettering <lennart@poettering.net>2005-01-04 23:52:38 +0000
commit927f8b06fe3550f45c8d7b119acaa77d9b22888c (patch)
tree928ee1ffcd06abd4966f2bed4e7966c4b92afe8d /main.c
parent4de18a7015ed77eac277bee669d4c8d9dae60b89 (diff)
some work
git-svn-id: file:///home/lennart/svn/public/avahi/trunk@6 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
Diffstat (limited to 'main.c')
-rw-r--r--main.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/main.c b/main.c
index 0dcfa70..1765540 100644
--- a/main.c
+++ b/main.c
@@ -3,6 +3,7 @@
#include <arpa/inet.h>
#include "flx.h"
+#include "server.h"
static GMainLoop *loop = NULL;
@@ -16,6 +17,7 @@ int main(int argc, char *argv[]) {
flxLocalAddrSource *l;
flxAddress a;
gchar *r;
+ flxQuery q;
flx = flx_server_new(NULL);
@@ -27,7 +29,12 @@ int main(int argc, char *argv[]) {
flx_address_parse("::1", AF_INET6, &a);
flx_server_add_address(flx, 0, 0, AF_UNSPEC, "ip6-localhost", &a);
- g_timeout_add(1000, timeout, NULL);
+ q.name = "campari.local.";
+ q.class = FLX_DNS_CLASS_IN;
+ q.type = FLX_DNS_TYPE_A;
+ flx_server_post_query_job(flx, 0, AF_UNSPEC, NULL, &q);
+
+ g_timeout_add(5000, timeout, NULL);
loop = g_main_loop_new(NULL, FALSE);
g_main_loop_run(loop);