diff options
author | Yang Tse <yangsita@gmail.com> | 2010-01-25 23:50:13 +0000 |
---|---|---|
committer | Yang Tse <yangsita@gmail.com> | 2010-01-25 23:50:13 +0000 |
commit | 483ff1ca75cbeabe9d0ec4548d8a4d68f8104d83 (patch) | |
tree | 657a0b65ded1c97b129babf8b36dff6c0ce25a1d /lib/hostip.h | |
parent | c054b8bfa7bde0c209dd3ef688d07553d6ed04fb (diff) | |
download | curl-483ff1ca75cbeabe9d0ec4548d8a4d68f8104d83.tar.gz |
Constantine Sapuntzakis threaded resolver enhancements
Diffstat (limited to 'lib/hostip.h')
-rw-r--r-- | lib/hostip.h | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/lib/hostip.h b/lib/hostip.h index 85425b6ce..ea2e3cd87 100644 --- a/lib/hostip.h +++ b/lib/hostip.h @@ -1,5 +1,5 @@ -#ifndef __HOSTIP_H -#define __HOSTIP_H +#ifndef HEADER_CURL_HOSTIP_H +#define HEADER_CURL_HOSTIP_H /*************************************************************************** * _ _ ____ _ * Project ___| | | | _ \| | @@ -165,6 +165,9 @@ int curl_dogetnameinfo(GETNAMEINFO_QUAL_ARG1 GETNAMEINFO_TYPE_ARG1 sa, int line, const char *source); #endif +/* IPv4 threadsafe resolve function used for synch and asynch builds */ +Curl_addrinfo *Curl_ipv4_resolve_r(const char * hostname, int port); + /* * Curl_addrinfo_callback() is used when we build with any asynch specialty. * Handles end of async request processing. Inserts ai into hostcache when @@ -214,4 +217,4 @@ void Curl_destroy_thread_data(struct Curl_async *async); extern sigjmp_buf curl_jmpenv; #endif -#endif +#endif /* HEADER_CURL_HOSTIP_H */ |