diff options
author | David Wagner <david.wagner@intel.com> | 2013-12-05 19:07:08 +0100 |
---|---|---|
committer | David Wagner <david.wagner@intel.com> | 2014-02-12 17:04:16 +0100 |
commit | df8bf839ca3b7ce9a0ac6f1b645f27bdbc8509e5 (patch) | |
tree | 788a24d52ff537c68c97ec1a9c97c9cb38199886 /remote-processor | |
parent | 4c3f8d84128a61f1b9af4260054ab5e4042b08ee (diff) | |
download | external_parameter-framework-df8bf839ca3b7ce9a0ac6f1b645f27bdbc8509e5.zip external_parameter-framework-df8bf839ca3b7ce9a0ac6f1b645f27bdbc8509e5.tar.gz external_parameter-framework-df8bf839ca3b7ce9a0ac6f1b645f27bdbc8509e5.tar.bz2 |
remote-process: allow reading commands from stdin
BZ: 154316
The remote-process utility was only able to send one command at a time.
This patch adds a new usage: if the command is omitted, remote-process
reads stdin and sends each line as commands. It stops whenever it
encounters an error of any kind (internal or returned by the server).
Example of the new usage:
remote-process localhost 5000 < commands.txt
Change-Id: I2478668807b5541544c5752e68e112c23c85af15
Signed-off-by: David Wagner <david.wagner@intel.com>
Diffstat (limited to 'remote-processor')
-rw-r--r-- | remote-processor/RequestMessage.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/remote-processor/RequestMessage.h b/remote-processor/RequestMessage.h index a9567e5..763f6dc 100644 --- a/remote-processor/RequestMessage.h +++ b/remote-processor/RequestMessage.h @@ -35,6 +35,7 @@ public: CRequestMessage(); // Command Name + void setCommand(const string& strCommand); virtual const string& getCommand() const; // Arguments @@ -58,8 +59,6 @@ private: virtual void collectReceivedData(); // Size virtual uint32_t getDataSize() const; - // Command - void setCommand(const string& strCommand); // Trim input string static string trim(const string& strToTrim); |