3 #ifndef __SOCKS_CONNECTER_HPP_INCLUDED__
4 #define __SOCKS_CONNECTER_HPP_INCLUDED__
17 class socks_connecter_t
ZMQ_FINAL :
public stream_connecter_base_t
22 socks_connecter_t (zmq::io_thread_t *io_thread_,
26 address_t *proxy_addr_,
28 ~socks_connecter_t ();
30 void set_auth_method_basic (
const std::string &username,
32 void set_auth_method_none ();
52 socks_no_auth_required = 0x00,
53 socks_basic_auth = 0x02,
54 socks_no_acceptable_method = 0xff
62 void start_connecting ();
64 static int process_server_response (
const socks_choice_t &response_);
68 static int parse_address (
const std::string &address_,
72 int connect_to_proxy ();
83 zmq::fd_t check_proxy_connection ()
const;