|
|
@ -1,6 +1,6 @@ |
|
|
|
/* $Id$ */ |
|
|
|
/* $Id$ */ |
|
|
|
|
|
|
|
|
|
|
|
/* Copyright (C) 2005 - 2007, Daniel Stenberg
|
|
|
|
/* Copyright (C) 2005 - 2010, Daniel Stenberg
|
|
|
|
* |
|
|
|
* |
|
|
|
* Permission to use, copy, modify, and distribute this software and its |
|
|
|
* Permission to use, copy, modify, and distribute this software and its |
|
|
|
* documentation for any purpose and without fee is hereby granted, provided |
|
|
|
* documentation for any purpose and without fee is hereby granted, provided |
|
|
@ -23,7 +23,7 @@ |
|
|
|
#include "ares_private.h" |
|
|
|
#include "ares_private.h" |
|
|
|
|
|
|
|
|
|
|
|
int ares_getsock(ares_channel channel, |
|
|
|
int ares_getsock(ares_channel channel, |
|
|
|
int *s, |
|
|
|
ares_socket_t *socks, |
|
|
|
int numsocks) /* size of the 'socks' array */ |
|
|
|
int numsocks) /* size of the 'socks' array */ |
|
|
|
{ |
|
|
|
{ |
|
|
|
struct server_state *server; |
|
|
|
struct server_state *server; |
|
|
@ -32,8 +32,6 @@ int ares_getsock(ares_channel channel, |
|
|
|
int bitmap = 0; |
|
|
|
int bitmap = 0; |
|
|
|
unsigned int setbits = 0xffffffff; |
|
|
|
unsigned int setbits = 0xffffffff; |
|
|
|
|
|
|
|
|
|
|
|
ares_socket_t *socks = (ares_socket_t *)s; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/* Are there any active queries? */ |
|
|
|
/* Are there any active queries? */ |
|
|
|
int active_queries = !ares__is_list_empty(&(channel->all_queries)); |
|
|
|
int active_queries = !ares__is_list_empty(&(channel->all_queries)); |
|
|
|
|
|
|
|
|
|
|
|