aboutsummaryrefslogtreecommitdiff
path: root/lib/socks.h
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2006-09-23 19:07:20 +0000
committerDaniel Stenberg <daniel@haxx.se>2006-09-23 19:07:20 +0000
commit3ea8a4d220067e27ab3b988f35b3ac7b9c27efd4 (patch)
treea8f48832cabc80eb646eff482329c501a929be1b /lib/socks.h
parentb0d3ba76a02a27a258048a1014b0d8562890f964 (diff)
Dmitriy Sergeyev provided a patch that made the SOCKS[45] code work better as
it now will read the full data sent from servers. The SOCKS-related code was also moved to the new lib/socks.c source file.
Diffstat (limited to 'lib/socks.h')
-rw-r--r--lib/socks.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/lib/socks.h b/lib/socks.h
new file mode 100644
index 000000000..b0a40a69d
--- /dev/null
+++ b/lib/socks.h
@@ -0,0 +1,19 @@
+#ifndef __SOCKS_H
+#define __SOCKS_H
+
+/*
+ * This function logs in to a SOCKS4 proxy and sends the specifics to the
+ * final destination server.
+ */
+CURLcode Curl_SOCKS4(const char *proxy_name,
+ struct connectdata *conn);
+
+/*
+ * This function logs in to a SOCKS5 proxy and sends the specifics to the
+ * final destination server.
+ */
+CURLcode Curl_SOCKS5(const char *proxy_name,
+ const char *proxy_password,
+ struct connectdata *conn);
+
+#endif