6 #ifndef __POLL_FUNCTIONS_H__
7 #define __POLL_FUNCTIONS_H__
20 if (error_msg !=
"") {
21 printf(
"error: %s\n", error_msg.c_str());
24 printf(
"poll command syntax help:\n");
29 printf(
" ack <msgID>\n");
32 if (error_msg !=
"") {
50 if (!args.empty() && !(args[0] ==
"help")) {
51 if (args[0] ==
"req" || args[0] ==
"ack") {
53 args.erase(args.begin());
55 if (cmd->
get_op() ==
"req") {
62 }
else if (args.size() > 1) {
69 printf(
"poll op: [%s]\n", cmd->
get_op().c_str());
72 printf(
" msgID: [%s]\n", cmd->
get_msgID().c_str());
89 #endif //__POLL_FUNCTIONS_H__
EPP PollCmd Class.
Definition: PollCmd.H:21
string get_msgID() const
Returns the msgID of the message.
Definition: PollCmd.H:54
PollCmd * get_command()
Returns raw pointer to the command.
Definition: Poll.H:57
string get_op() const
Returns the operation of the poll command.
Definition: PollCmd.H:48
void set_op(const string &op)
Sets the operation of the poll command ("req" or "ack")
Definition: PollCmd.H:36
int cmd_poll_help(string error_msg)
print poll command usage info
Definition: PollFunctions.H:18
int process_action(Action &act)
Send and EPP Action.
Definition: SheppCommandFunctions.H:871
int cmd_poll(vector< string > &args)
main poll command
Definition: PollFunctions.H:44
void set_msgID(const string &msgID)
Sets the msgID of the message being acknowledged.
Definition: PollCmd.H:42
EPP Poll Class.
Definition: Poll.H:23
EPP command-line shell client command functions include file.