src/stun.c

changeset 14225
35fa1f6160b4
parent 12909
dfcf4df1dcd7
child 14226
1f4c77bdb22a
equal deleted inserted replaced
14224:d6d41ff969df 14225:35fa1f6160b4
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;

mercurial