diff options
author | Maxim Biro <nurupo.contributions@gmail.com> | 2014-12-13 23:44:51 -0500 |
---|---|---|
committer | Maxim Biro <nurupo.contributions@gmail.com> | 2014-12-13 23:59:50 -0500 |
commit | 377da127a1e19f96f75da8b4c59eee6a947cab3b (patch) | |
tree | a09251ab4f14dddc2f31e35f832aed2392a36db4 /toxcore/TCP_client.h | |
parent | 7d4489b8724edd929189c7b7f2a9a32b28429c48 (diff) |
Added HTTP proxy support
Diffstat (limited to 'toxcore/TCP_client.h')
-rw-r--r-- | toxcore/TCP_client.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/toxcore/TCP_client.h b/toxcore/TCP_client.h index 83cb48ba..8a1aeec1 100644 --- a/toxcore/TCP_client.h +++ b/toxcore/TCP_client.h | |||
@@ -31,12 +31,14 @@ | |||
31 | 31 | ||
32 | typedef struct { | 32 | typedef struct { |
33 | IP_Port ip_port; | 33 | IP_Port ip_port; |
34 | int is_http; /* HTTP proxy on true, SOCKS5 on false */ | ||
34 | } TCP_Proxy_Info; | 35 | } TCP_Proxy_Info; |
35 | 36 | ||
36 | enum { | 37 | enum { |
37 | TCP_CLIENT_NO_STATUS, | 38 | TCP_CLIENT_NO_STATUS, |
38 | TCP_CLIENT_PROXY_CONNECTING, | 39 | TCP_CLIENT_PROXY_HTTP_CONNECTING, |
39 | TCP_CLIENT_PROXY_UNCONFIRMED, | 40 | TCP_CLIENT_PROXY_SOCKS5_CONNECTING, |
41 | TCP_CLIENT_PROXY_SOCKS5_UNCONFIRMED, | ||
40 | TCP_CLIENT_CONNECTING, | 42 | TCP_CLIENT_CONNECTING, |
41 | TCP_CLIENT_UNCONFIRMED, | 43 | TCP_CLIENT_UNCONFIRMED, |
42 | TCP_CLIENT_CONFIRMED, | 44 | TCP_CLIENT_CONFIRMED, |