12 struct socks5_client_hello
15 uint8_t num_auth_methods;
19 /* Client socks request */
20 struct socks5_client_request
27 * followed by either an ip4/ipv6 address
28 * or a domain name with a length field in front
33 struct socks5_server_hello
39 #define BUF_WAIT_FOR_CURL 0
40 #define BUF_WAIT_FOR_MHD 1
42 /* Struct used to store connection
48 struct socks5_bridge* remote_end;
54 /* This is an ssl bridge? */
57 /* if use_ssl=1 we have a daemon associated */
58 struct MHD_Daemon *ssl_daemon;
66 /* is response html? */
69 /* buffer structures */
71 pthread_mutex_t m_done;
73 pthread_mutex_t m_buf;
74 char MHD_CURL_BUF[CURL_MAX_WRITE_SIZE];
75 size_t MHD_CURL_BUF_SIZE;
76 int MHD_CURL_BUF_STATUS;
79 /* Server response to client requests */
80 struct socks5_server_response