src/shepp/SheppCommandFunctions.H File Reference

EPP command-line shell client command functions include file. More...

#include "SheppGlobal.H"
#include "SheppStrUtil.H"
#include "SheppObjSet.H"
#include "SheppPrint.H"
#include "IoException.H"
#include "TransportException.H"
#include "EppException.H"
#include "XmlException.H"
#include "Login.H"
#include "Logout.H"

Go to the source code of this file.

Functions

int cmd_login __P ((char *))
void init_commands ()
 Populates set of available commands.
const SheppCommandfind_command (string name)
 Given a word check if it's a valid SheppCommand.
int cmd_server (char *arg)
 Sets server address [and port] based on input command-line.
int cmd_port (char *arg)
 Sets server port based on input command-line.
int cmd_client_pem (char *arg)
 Sets client.pem certificate file location.
int cmd_root_pem (char *arg)
 Sets root.pem certificate file location.
int cmd_pass (char *arg)
 Sets SSL certificate passphrase based on input command-line.
int cmd_user (char *arg)
 Sets login user based on input command-line.
int cmd_login_pw (char *arg)
 Sets EPP login password based on input command-line.
int cmd_login_new_pw (char *arg)
 Sets new EPP login password based on input command-line.
int cmd_lang (char *arg)
 Sets text language based on input command-line.
int cmd_connect (char *arg)
 Connects to previously specified server and port.
int cmd_beauty (char *arg)
 Turns XML beautifier ON and OFF.
int cmd_debug (char *arg)
 Turns debug messages ON and OFF.
int cmd_autorsp (char *arg)
 Turns auto-show response ON and OFF.
int cmd_keepalive (char *arg)
 Turns keep-alive ON and OFF.
int cmd_xmlcmd (char *arg)
 Shows last XML command.
int cmd_xmlrsp (char *arg)
 Shows last XML response.
void print_cmd_sent_ok ()
 Prints "command sent ok" message.
int process_action (Action &act)
 Send and EPP Action.
int cmd_login (char *arg)
 Send an EPP Login.
int cmd_logout (char *arg)
 Send an EPP Logout.
int cmd_hello (char *arg)
 Send an EPP HELLO.
int cmd_quit (char *arg)
 Leaves shepp.
int cmd_help (char *arg)
 Prints help.
int cmd_about (char *arg)
 Prints version information.


Detailed Description

EPP command-line shell client command functions include file.


Function Documentation

int cmd_about char *  arg  ) 
 

Prints version information.

Parameters:
arg input command-line
Returns:
0 if ok, -1 otherwise

int cmd_autorsp char *  arg  ) 
 

Turns auto-show response ON and OFF.

Parameters:
arg input command-line
Returns:
0 if ok, -1 otherwise

int cmd_beauty char *  arg  ) 
 

Turns XML beautifier ON and OFF.

Parameters:
arg input command-line
Returns:
0 if ok, -1 otherwise

int cmd_client_pem char *  arg  ) 
 

Sets client.pem certificate file location.

Parameters:
arg input command-line
Returns:
0 if ok, -1 otherwise

int cmd_connect char *  arg  ) 
 

Connects to previously specified server and port.

Parameters:
arg input command-line
Returns:
0 if ok, -1 otherwise

int cmd_debug char *  arg  ) 
 

Turns debug messages ON and OFF.

Parameters:
arg input command-line
Returns:
0 if ok, -1 otherwise

int cmd_hello char *  arg  ) 
 

Send an EPP HELLO.

Parameters:
arg input command-line
Returns:
0 if ok, -1 otherwise

int cmd_help char *  arg  ) 
 

Prints help.

Parameters:
arg input command-line
Returns:
0 if ok, -1 otherwise

int cmd_keepalive char *  arg  ) 
 

Turns keep-alive ON and OFF.

Parameters:
arg input command-line
Returns:
0 if ok, -1 otherwise

int cmd_lang char *  arg  ) 
 

Sets text language based on input command-line.

Parameters:
arg input command-line
Returns:
0 if ok, -1 otherwise

int cmd_login char *  arg  ) 
 

Send an EPP Login.

Parameters:
arg input command-line
Returns:
0 if ok, -1 otherwise

int cmd_login_new_pw char *  arg  ) 
 

Sets new EPP login password based on input command-line.

Parameters:
arg input command-line
Returns:
0 if ok, -1 otherwise

int cmd_login_pw char *  arg  ) 
 

Sets EPP login password based on input command-line.

Parameters:
arg input command-line
Returns:
0 if ok, -1 otherwise

int cmd_logout char *  arg  ) 
 

Send an EPP Logout.

Parameters:
arg input command-line
Returns:
0 if ok, -1 otherwise

int cmd_pass char *  arg  ) 
 

Sets SSL certificate passphrase based on input command-line.

Parameters:
arg input command-line
Returns:
0 if ok, -1 otherwise

int cmd_port char *  arg  ) 
 

Sets server port based on input command-line.

Parameters:
arg input command-line
Returns:
0 if ok, -1 otherwise

int cmd_quit char *  arg  ) 
 

Leaves shepp.

Parameters:
arg input command-line
Returns:
0 if ok, -1 otherwise

int cmd_root_pem char *  arg  ) 
 

Sets root.pem certificate file location.

Parameters:
arg input command-line
Returns:
0 if ok, -1 otherwise

int cmd_server char *  arg  ) 
 

Sets server address [and port] based on input command-line.

Parameters:
arg input command-line
Returns:
0 if ok, -1 otherwise

int cmd_user char *  arg  ) 
 

Sets login user based on input command-line.

Parameters:
arg input command-line
Returns:
0 if ok, -1 otherwise

int cmd_xmlcmd char *  arg  ) 
 

Shows last XML command.

Parameters:
arg input command-line
Returns:
0 if ok, -1 otherwise

int cmd_xmlrsp char *  arg  ) 
 

Shows last XML response.

Parameters:
arg input command-line
Returns:
0 if ok, -1 otherwise

const SheppCommand* find_command string  name  ) 
 

Given a word check if it's a valid SheppCommand.

Parameters:
name of command check validity
Returns:
pointer to a SheppCommand if found, NULL pointer if not found

int process_action Action act  ) 
 

Send and EPP Action.

Returns:
0 if ok, -1 otherwise


Generated on Thu Jun 8 17:40:01 2006 for libepp_nicbr by  doxygen 1.4.6