comparison src/stun.c @ 14164:879bb47cff8e

[gaim-migrate @ 16814] Revert SVN revision 16811. Kevin says it's crashing for him and I'm tired. committer: Tailor Script <tailor@pidgin.im>
author Mark Doliner <mark@kingant.net>
date Thu, 17 Aug 2006 10:04:21 +0000
parents c3167a1dd817
children fc92a5a7dd95
comparison
equal deleted inserted replaced
14163:c3167a1dd817 14164:879bb47cff8e
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"
44 #include "dnssrv.h" 43 #include "dnssrv.h"
45 #include "network.h" 44 #include "network.h"
46 #include "proxy.h" 45 #include "proxy.h"
47 #include "stun.h" 46 #include "stun.h"
48 #include "prefs.h" 47 #include "prefs.h"
358 port = resp[0].port; 357 port = resp[0].port;
359 } 358 }
360 gaim_debug_info("stun", "got %d SRV responses, server: %s, port: %d\n", 359 gaim_debug_info("stun", "got %d SRV responses, server: %s, port: %d\n",
361 results, servername, port); 360 results, servername, port);
362 361
363 gaim_dnsquery_a(servername, port, hbn_cb, NULL); 362 gaim_gethostbyname_async(servername, port, hbn_cb, NULL);
364 g_free(resp); 363 g_free(resp);
365 } 364 }
366 365
367 static gboolean call_callback(gpointer data) { 366 static gboolean call_callback(gpointer data) {
368 StunCallback cb = data; 367 StunCallback cb = data;