From 2449016e1216879ee0ebdafac0fb44635e6f9796 Mon Sep 17 00:00:00 2001 From: Patrick Simianer Date: Wed, 13 May 2015 20:13:45 +0200 Subject: atools_net: shutdown --- utils/atools_net.cc | 5 +++++ 1 file changed, 5 insertions(+) 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 parts; boost::algorithm::split_regex(parts, in, boost::regex(" \\|\\|\\| ")); boost::shared_ptr > out(new Array2D); -- cgit v1.2.3