Use client-server processing to avoid constant super-user invocation.

This commit is contained in:
2019-09-05 21:37:33 +01:00
parent 01dad2ee0a
commit dac4617d70
6 changed files with 196 additions and 68 deletions

7
IO.hpp
View File

@@ -21,8 +21,13 @@ along with this program. If not, see <https://www.gnu.org/licenses/>.
#include <cstdint>
#include <vector>
extern std::string binaryDirectory;
#ifdef DEBUG_STREAMS
extern std::string cacheDirectory;
#endif
#ifdef HID_SOCKET
extern std::string clientSocket;
#endif
// Returns either the number of bytes specified,
// or returns empty vector without discarding bytes from HID stream