#include <TransportTLS.H>
Inheritance diagram for TransportTLS:
Public Member Functions | |
TransportTLS (const string &server="localhost", const int &port=700) | |
Default constructor. | |
const string | get_server () |
Return the server address. | |
const int | get_port () |
Return the server port number. | |
void | set_server (const string &server) |
Set the server name/address. | |
void | set_port (const int &port) |
Set connection port. | |
void | connect (const string &client_cert_file, const string &root_ca_file, const string &pem_passphrase="") |
Open the Connection. |
void TransportTLS::connect | ( | const string & | client_cert_file, | |
const string & | root_ca_file, | |||
const string & | pem_passphrase = "" | |||
) |
Open the Connection.
client_cert_file | Client certificate file | |
root_ca_file | Root certificate file | |
pem_passphrase | Optional passphrase for an encrypted private key |
const int TransportTLS::get_port | ( | ) |
Return the server port number.
const string TransportTLS::get_server | ( | ) |
Return the server address.
void TransportTLS::set_port | ( | const int & | port | ) |
Set connection port.
port | server port number |
void TransportTLS::set_server | ( | const string & | server | ) |
Set the server name/address.
server | name/address |