Exemplo n.º 1
0
CURLcode Curl_addrinfo4_callback(void *arg, /* "struct connectdata *" */
                                 int status,
#ifdef HAVE_CARES_CALLBACK_TIMEOUTS
                                 int timeouts,
#endif
                                 struct hostent *hostent)
{
#ifdef HAVE_CARES_CALLBACK_TIMEOUTS
  (void)timeouts; /* ignored */
#endif
  return addrinfo_callback(arg, status, hostent);
}
Exemplo n.º 2
0
CURLcode Curl_addrinfo6_callback(void *arg, /* "struct connectdata *" */
                                 int status,
#ifdef HAVE_CARES_CALLBACK_TIMEOUTS
                                 int timeouts,
#endif
                                 struct addrinfo *ai)
{
 /* NOTE: for CURLRES_ARES, the 'ai' argument is really a
  * 'struct hostent' pointer.
  */
#ifdef HAVE_CARES_CALLBACK_TIMEOUTS
  (void)timeouts; /* ignored */
#endif
  return addrinfo_callback(arg, status, ai);
}
Exemplo n.º 3
0
void Curl_addrinfo6_callback( void *arg, /* "struct connectdata *" */
							  int status,
							  struct addrinfo *ai ) {
	addrinfo_callback( arg, status, ai );
}
Exemplo n.º 4
0
void Curl_addrinfo4_callback( void *arg, /* "struct connectdata *" */
							  int status,
							  struct hostent *hostent ) {
	addrinfo_callback( arg, status, hostent );
}