summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatrick Simianer <p@simianer.de>2015-05-13 20:13:45 +0200
committerPatrick Simianer <p@simianer.de>2015-05-13 20:13:45 +0200
commit2449016e1216879ee0ebdafac0fb44635e6f9796 (patch)
tree65052e82a9012a7115d72a70e8500b88eb3fc564
parent1f71022e124e7134106513bb38a01a5f6fd66da1 (diff)
atools_net: shutdown
-rw-r--r--utils/atools_net.cc5
1 files changed, 5 insertions, 0 deletions
diff --git a/utils/atools_net.cc b/utils/atools_net.cc
index 25f70bbe..fa5dfb96 100644
--- a/utils/atools_net.cc
+++ b/utils/atools_net.cc
@@ -337,6 +337,11 @@ int main(int argc, char **argv) {
if (buf) {
const string in(buf, buf+sz);
nn::freemsg(buf);
+ if (in == "shutdown") {
+ string off = "off";
+ sock.send(off.c_str(), off.size()+1, 0);
+ break;
+ }
vector<string> parts;
boost::algorithm::split_regex(parts, in, boost::regex(" \\|\\|\\| "));
boost::shared_ptr<Array2D<bool> > out(new Array2D<bool>);