17 #ifndef THRIFTCLIENT_H
18 #define THRIFTCLIENT_H
19 #include <thrift/protocol/TProtocol.h>
20 #include <thrift/transport/TSSLSocket.h>
25 using namespace ::apache::thrift::transport;
26 using namespace ::apache::thrift::protocol;
27 using namespace ::apache::thrift::transport;
36 bool skip_host_verify,
37 const std::string& ca_cert_name,
38 const std::string& trust_cert_file)
49 bool skip_host_verify,
50 std::shared_ptr<TSSLSocketFactory> factory);
55 const std::string& server_host,
57 const std::string& ca_cert_name,
58 const bool with_timeout =
false,
61 const unsigned recv_timeount = 0,
65 const std::string& server_host,
85 #endif // THRIFTCLIENT_H
ThriftConnectionType conn_type_
std::shared_ptr< TTransport > open_http_client_transport(const std::string &server_host, const int port, const std::string &trust_cert_file_, bool use_https, bool skip_verify)
virtual ~ThriftClientConnection()
std::shared_ptr< TTransport > open_buffered_client_transport(const std::string &server_host, const int port, const std::string &ca_cert_name, const bool with_timeout=false, const bool with_keepalive=true, const unsigned connect_timeout=0, const unsigned recv_timeount=0, const unsigned send_timeout=0)
std::string ca_cert_name_
std::string trust_cert_file_
std::shared_ptr< TProtocol > get_protocol()
std::shared_ptr< TSSLSocketFactory > factory_
ThriftClientConnection(const std::string &server_host, const int port, const ThriftConnectionType conn_type, bool skip_host_verify, const std::string &ca_cert_name, const std::string &trust_cert_file)