Command line interface.

This commit is contained in:
Adam Ierymenko 2013-07-18 16:35:52 -04:00
parent c345c699fd
commit 5f4eb1ebc6
5 changed files with 184 additions and 9 deletions

View file

@ -49,11 +49,6 @@ public:
/**
* Create a new node config client
*
* The result handler will be called from a different thread. Its
* arguments are the request ID generated by send() and each line
* of output. It may be called more than once per request result
* if the command generates more than one line of output.
*
* @param authToken Authentication token
* @param resultHandler Function to call when commands provide results
*/
@ -65,8 +60,12 @@ public:
/**
* Send a command to the local node
*
* Note that the returned conversation ID will never be 0. A return value
* of 0 indicates a fatal error such as failure to bind to any local UDP
* port.
*
* @param command
* @return Request ID that will be provided to result handler when/if results are sent back
* @return Conversation ID that will be provided to result handler when/if results are sent back
*/
unsigned long send(const char *command)
throw();