src/shepp/SheppCommandFunctions.H File Reference

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

#include <unistd.h>
#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 (vector< string > &args)
 Send an EPP Login.
int cmd_logout (vector< string > &args)
 Send an EPP Logout.
int cmd_hello (vector< string > &args)
 Send an EPP HELLO.
int cmd_poll (vector< string > &)
 main poll command
int cmd_domain (vector< string > &)
 main domain command
int cmd_contact (vector< string > &)
 main contact command
int cmd_xmlcmd (vector< string > &args)
 Shows last XML command.
int cmd_xmlrsp (vector< string > &args)
 Shows last XML response.
int cmd_server (vector< string > &args)
 Sets server address [and port] based on input command-line.
int cmd_port (vector< string > &args)
 Sets server port based on input command-line.
int cmd_client_pem (vector< string > &args)
 Sets client.pem certificate file location.
int cmd_root_pem (vector< string > &args)
 Sets root.pem certificate file location.
int cmd_pass (vector< string > &args)
 Sets SSL certificate passphrase based on input command-line.
int cmd_user (vector< string > &args)
 Sets login user based on input command-line.
int cmd_login_pw (vector< string > &args)
 Sets EPP login password based on input command-line.
int cmd_login_new_pw (vector< string > &args)
 Sets new EPP login password based on input command-line.
int cmd_lang (vector< string > &args)
 Sets text language based on input command-line.
int cmd_connect (vector< string > &args)
 Connects to previously specified server and port.
int cmd_disconnect (vector< string > &args)
 Closes connection.
int cmd_help (vector< string > &args)
 Prints help.
int cmd_about (vector< string > &args)
 Prints version information.
int cmd_quit (vector< string > &args)
 Leaves shepp.
int cmd_beauty (vector< string > &args)
 Turns XML beautifier ON and OFF.
int cmd_debug (vector< string > &args)
 Turns debug messages ON and OFF.
int cmd_autorsp (vector< string > &args)
 Turns auto-show response ON and OFF.
int cmd_keepalive (vector< string > &args)
 Turns keep-alive ON and OFF.
int cmd_peer_crt_check (vector< string > &args)
 Turn peer's certificate check ON and OFF.
void init_commands ()
 Populates set of available commands.
const SheppCommandfind_command (string name)
 Given a word check if it's a valid SheppCommand.
void print_cmd_sent_ok ()
 Prints "command sent ok" message.
int process_action (Action &act)
 Send and EPP Action.


Detailed Description

EPP command-line shell client command functions include file.


Function Documentation

int cmd_about ( vector< string > &  args  ) 

Prints version information.

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

int cmd_autorsp ( vector< string > &  args  ) 

Turns auto-show response ON and OFF.

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

int cmd_beauty ( vector< string > &  args  ) 

Turns XML beautifier ON and OFF.

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

int cmd_client_pem ( vector< string > &  args  ) 

Sets client.pem certificate file location.

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

int cmd_connect ( vector< string > &  args  ) 

Connects to previously specified server and port.

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

int cmd_contact ( vector< string > &  args  ) 

main contact command

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

int cmd_debug ( vector< string > &  args  ) 

Turns debug messages ON and OFF.

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

int cmd_disconnect ( vector< string > &  args  ) 

Closes connection.

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

int cmd_domain ( vector< string > &  args  ) 

main domain command

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

int cmd_hello ( vector< string > &  args  ) 

Send an EPP HELLO.

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

int cmd_help ( vector< string > &  args  ) 

Prints help.

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

int cmd_keepalive ( vector< string > &  args  ) 

Turns keep-alive ON and OFF.

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

int cmd_lang ( vector< string > &  args  ) 

Sets text language based on input command-line.

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

int cmd_login ( vector< string > &  args  ) 

Send an EPP Login.

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

int cmd_login_new_pw ( vector< string > &  args  ) 

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

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

int cmd_login_pw ( vector< string > &  args  ) 

Sets EPP login password based on input command-line.

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

int cmd_logout ( vector< string > &  args  ) 

Send an EPP Logout.

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

int cmd_pass ( vector< string > &  args  ) 

Sets SSL certificate passphrase based on input command-line.

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

int cmd_peer_crt_check ( vector< string > &  args  ) 

Turn peer's certificate check ON and OFF.

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

int cmd_poll ( vector< string > &  args  ) 

main poll command

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

int cmd_port ( vector< string > &  args  ) 

Sets server port based on input command-line.

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

int cmd_quit ( vector< string > &  args  ) 

Leaves shepp.

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

int cmd_root_pem ( vector< string > &  args  ) 

Sets root.pem certificate file location.

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

int cmd_server ( vector< string > &  args  ) 

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

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

int cmd_user ( vector< string > &  args  ) 

Sets login user based on input command-line.

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

int cmd_xmlcmd ( vector< string > &  args  ) 

Shows last XML command.

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

int cmd_xmlrsp ( vector< string > &  args  ) 

Shows last XML response.

Parameters:
args 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 Tue Mar 20 13:02:18 2007 for libepp_nicbr by  doxygen 1.4.7