summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'segget/network.h')
-rw-r--r--segget/network.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/segget/network.h b/segget/network.h
index 78476f0..f88c9b5 100644
--- a/segget/network.h
+++ b/segget/network.h
@@ -29,6 +29,7 @@
//#include <string>
//#include <map>
#include <vector>
+#include <curl/curl.h>
#include "str.h"
#include "mirror.h"
class Tmirror;
@@ -44,6 +45,13 @@ using namespace std;
#define MODE_LOCAL 2
#define MODE_CORAL_CDN 3
+#define HTTP 0
+#define HTTP_1_0 1
+#define SOCKS4 2
+#define SOCKS4a 3
+#define SOCKS5 4
+#define SOCKS5_HOSTNAME 5
+
class Tnetwork{
static uint network_count;
private:
@@ -78,6 +86,7 @@ class Tnetwork{
bool proxy_off;
string proxy_user;
string proxy_password;
+ ulong proxy_type;
//proxy_fetcher
string proxy_fetcher_ip;
ulong proxy_fetcher_port;
@@ -113,6 +122,7 @@ class Tnetwork{
proxy_off(1),
proxy_user("none"),
proxy_password("none"),
+ proxy_type(CURLPROXY_HTTP),
//proxy_fetcher
proxy_fetcher_ip("none"),
proxy_fetcher_port(3131),