diff options
Diffstat (limited to 'toxcore/tox.h')
-rw-r--r-- | toxcore/tox.h | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/toxcore/tox.h b/toxcore/tox.h index 3b72eede..c5a5d952 100644 --- a/toxcore/tox.h +++ b/toxcore/tox.h | |||
@@ -873,6 +873,12 @@ int tox_add_tcp_relay(Tox *tox, const char *address, uint16_t port, const uint8_ | |||
873 | */ | 873 | */ |
874 | int tox_isconnected(const Tox *tox); | 874 | int tox_isconnected(const Tox *tox); |
875 | 875 | ||
876 | typedef enum { | ||
877 | TOX_PROXY_NONE, | ||
878 | TOX_PROXY_HTTP, | ||
879 | TOX_PROXY_SOCKS5 | ||
880 | } TOX_PROXY_TYPE; | ||
881 | |||
876 | typedef struct { | 882 | typedef struct { |
877 | /* | 883 | /* |
878 | * The type of UDP socket created depends on ipv6enabled: | 884 | * The type of UDP socket created depends on ipv6enabled: |
@@ -885,13 +891,11 @@ typedef struct { | |||
885 | 891 | ||
886 | /* Set to 1 to disable udp support. (default: 0) | 892 | /* Set to 1 to disable udp support. (default: 0) |
887 | This will force Tox to use TCP only which may slow things down. | 893 | This will force Tox to use TCP only which may slow things down. |
888 | Disabling udp support is necessary when using anonymous proxies or Tor.*/ | 894 | Disabling udp support is necessary when using proxies or Tor.*/ |
889 | uint8_t udp_disabled; | 895 | uint8_t udp_disabled; |
890 | 896 | uint8_t proxy_type; /* a value from TOX_PROXY_TYPE */ | |
891 | /* Enable proxy support. (only basic TCP socks5 proxy currently supported.) (default: 0 (disabled))*/ | ||
892 | uint8_t proxy_enabled; | ||
893 | char proxy_address[256]; /* Proxy ip or domain in NULL terminated string format. */ | 897 | char proxy_address[256]; /* Proxy ip or domain in NULL terminated string format. */ |
894 | uint16_t proxy_port; /* Proxy port: in host byte order. */ | 898 | uint16_t proxy_port; /* Proxy port in host byte order. */ |
895 | } Tox_Options; | 899 | } Tox_Options; |
896 | 900 | ||
897 | /* | 901 | /* |