Mercurial > pidgin
comparison src/stun.c @ 14163:c3167a1dd817
[gaim-migrate @ 16811]
Split the DNS query stuff out into it's own file. Eventually
we should move the dnssrv code into this same file. Maybe
even share some code?
Also the first steps toward cancelable DNS queries.
committer: Tailor Script <tailor@pidgin.im>
author | Mark Doliner <mark@kingant.net> |
---|---|
date | Thu, 17 Aug 2006 07:44:52 +0000 |
parents | 8e3b85fe4a55 |
children | 879bb47cff8e |
comparison
equal
deleted
inserted
replaced
14162:cef7f6a93592 | 14163:c3167a1dd817 |
---|---|
38 #include <sys/sockio.h> | 38 #include <sys/sockio.h> |
39 #endif | 39 #endif |
40 | 40 |
41 #include "debug.h" | 41 #include "debug.h" |
42 #include "account.h" | 42 #include "account.h" |
43 #include "dnsquery.h" | |
43 #include "dnssrv.h" | 44 #include "dnssrv.h" |
44 #include "network.h" | 45 #include "network.h" |
45 #include "proxy.h" | 46 #include "proxy.h" |
46 #include "stun.h" | 47 #include "stun.h" |
47 #include "prefs.h" | 48 #include "prefs.h" |
357 port = resp[0].port; | 358 port = resp[0].port; |
358 } | 359 } |
359 gaim_debug_info("stun", "got %d SRV responses, server: %s, port: %d\n", | 360 gaim_debug_info("stun", "got %d SRV responses, server: %s, port: %d\n", |
360 results, servername, port); | 361 results, servername, port); |
361 | 362 |
362 gaim_gethostbyname_async(servername, port, hbn_cb, NULL); | 363 gaim_dnsquery_a(servername, port, hbn_cb, NULL); |
363 g_free(resp); | 364 g_free(resp); |
364 } | 365 } |
365 | 366 |
366 static gboolean call_callback(gpointer data) { | 367 static gboolean call_callback(gpointer data) { |
367 StunCallback cb = data; | 368 StunCallback cb = data; |