20 #ifndef HAVE_SRANDOMDEV
21 #define srandomdev() srand((unsigned) time(NULL))
39 Session(
const string &server =
"localhost",
const int port = 700,
40 const string &templates_dir = TEMPLATESDIR);
66 void connect(
const string &client_cert_file,
const string &root_ca_file,
67 const string &pem_passphrase =
"");
87 const string clTRID =
"");
93 void runXML(
const string& input);
152 void read_templates(
const string &templates_dir = TEMPLATESDIR);
155 auto_ptr<DomParser> _parser;
158 auto_ptr<TransportTLS> _transport;
161 auto_ptr<Greeting> _greeting;
164 map < ActionType, string, less<ActionType> > _templates;
167 string _last_command;
170 string _last_response;
179 bool _cert_common_name_check_enabled;
187 #endif //__SESSION_H__
string get_last_command() const
Get last command.
void connect(const string &client_cert_file, const string &root_ca_file, const string &pem_passphrase="")
Establish the Connection.
void process_action(Action *action_to_be_processed, const string clTRID="")
Process Action.
void runXML(const string &input)
Send XML input command.
void send_hello()
Send Hello.
void enable_xml_validation(const string &schemas_dir=SCHEMASDIR)
Enable XML Parser Validation.
void set_server(const string &server)
Set EPP server name.
Greeting * get_greeting()
Get Greeting.
EPP Action Class.
Definition: Action.H:24
void disconnect()
Close the connection.
void set_clTrID(const string &clTRID)
string get_clTrID() const
EPP Session Class.
Definition: Session.H:30
int get_port() const
Get EPP server port.
EPP Greeting Class.
Definition: Greeting.H:21
void set_port(const int &port)
Set EPP server port.
string get_last_response() const
Get last response.
void disable_cert_common_name_check()
Disables peer's certificate common name check.
void disable_xml_validation()
Disable XML Parser Validation.
void enable_cert_common_name_check()
Enables peer's certificate common name check.
string get_server() const
Get EPP server.
Session(const string &server="localhost", const int port=700, const string &templates_dir=TEMPLATESDIR)
Constructor.