From 30af52eb324f6bf5551869033605e3141d745a40 Mon Sep 17 00:00:00 2001 From: Vadim Troshchinskiy Date: Tue, 18 Oct 2016 09:19:28 +0200 Subject: Slave channel implementation When enabled and a connection is made to the port, launches the process specified in NX_SLAVE_CMD on the other side, and connects stdin and stdout to the socket. This is used for VM/client and client/VM communication. --- nxcomp/Proxy.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'nxcomp/Proxy.h') diff --git a/nxcomp/Proxy.h b/nxcomp/Proxy.h index 8259ddbb7..ea60c827a 100644 --- a/nxcomp/Proxy.h +++ b/nxcomp/Proxy.h @@ -302,6 +302,8 @@ class Proxy int handleNewSlaveConnectionFromProxy(int channelId); + void checkSlaves(); + // // Force closure of channels. // @@ -1268,6 +1270,7 @@ class Proxy int channelMap_[CONNECTIONS_LIMIT]; int fdMap_[CONNECTIONS_LIMIT]; + int slavePidMap_[CONNECTIONS_LIMIT]; }; #endif /* Proxy_H */ -- cgit v1.2.3