summaryrefslogtreecommitdiff
path: root/lib/hostip.h
diff options
context:
space:
mode:
authorYang Tse <yangsita@gmail.com>2010-01-25 23:50:13 +0000
committerYang Tse <yangsita@gmail.com>2010-01-25 23:50:13 +0000
commit483ff1ca75cbeabe9d0ec4548d8a4d68f8104d83 (patch)
tree657a0b65ded1c97b129babf8b36dff6c0ce25a1d /lib/hostip.h
parentc054b8bfa7bde0c209dd3ef688d07553d6ed04fb (diff)
downloadgnurl-483ff1ca75cbeabe9d0ec4548d8a4d68f8104d83.tar.gz
gnurl-483ff1ca75cbeabe9d0ec4548d8a4d68f8104d83.tar.bz2
gnurl-483ff1ca75cbeabe9d0ec4548d8a4d68f8104d83.zip
Constantine Sapuntzakis threaded resolver enhancements
Diffstat (limited to 'lib/hostip.h')
-rw-r--r--lib/hostip.h9
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 */