Shutdown all connections on CONNECTION_SHUTDOWN signal

In case the factory gets a connection shutdown signal, all connections
are terminated.

Change-Id: I7026487156db0a671d26e711b9087a6d13301622

git-svn-id: https://svn.apache.org/repos/asf/etch/trunk@1679595 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/binding-cpp/runtime/src/main/transport/EtchTcpTransportFactory.cpp b/binding-cpp/runtime/src/main/transport/EtchTcpTransportFactory.cpp
index 15f3422..bfc703b 100644
--- a/binding-cpp/runtime/src/main/transport/EtchTcpTransportFactory.cpp
+++ b/binding-cpp/runtime/src/main/transport/EtchTcpTransportFactory.cpp
@@ -187,6 +187,10 @@
     return ETCH_OK;
   }
 
+  if (event->equals(&EtchTcpListener::CONNECTION_SHUTDOWN())) {
+      shutdownAllConnections();
+  }
+
   return mSession->sessionNotify(event);
 
 }