libepp_nicbr
TransportTLS.H
Go to the documentation of this file.
1 /* ${copyright}$ */
2 /* $Id: TransportTLS.H 1086 2010-12-10 13:07:28Z eduardo $ */
7 #ifndef __TRANSPORTTLS_H__
8 #define __TRANSPORTTLS_H__
9 
10 #include "TransportTLSCommon.H"
11 
12 LIBEPP_NICBR_NS_BEGIN
13 
16 {
17 public:
19  TransportTLS(const string &server = "localhost", const int &port = 700);
20 
22 
25  string get_server() const;
26 
28 
31  int get_port() const;
32 
34 
37  void set_server(const string &server);
38 
40 
43  void set_port(const int port);
44 
46 
51  void connect(const string &client_cert_file, const string &root_ca_file,
52  const string &pem_passphrase = "");
53 
54 private:
56  string _server;
57 
59  int _port;
60 };
61 
62 LIBEPP_NICBR_NS_END
63 #endif //__TRANSPORTTLS_H__
int get_port() const
Return the server port number.
TransportTLSCommon class.
void connect(const string &client_cert_file, const string &root_ca_file, const string &pem_passphrase="")
Open the Connection.
TransportTLS(const string &server="localhost", const int &port=700)
Default constructor.
TransportTLS class.
Definition: TransportTLS.H:15
string get_server() const
Return the server address.
void set_server(const string &server)
Set the server name/address.
TransportTLSCommon class.
Definition: TransportTLSCommon.H:24
void set_port(const int port)
Set connection port.