Start on unix socket server on c++ side

This commit is contained in:
Konstantin Lampalzer 2022-05-22 02:30:07 +02:00
parent 0bef6035ae
commit 1a033c8b03
8 changed files with 300 additions and 9 deletions

View file

@ -0,0 +1,20 @@
#ifndef COMPLIB_SERVER_UNIXSOCKETSERVER_HPP
#define COMPLIB_SERVER_UNIXSOCKETSERVER_HPP
#include <thread>
#define SOCKET_PATH "/tmp/compLib"
#define SOCKET_BUFFER_SIZE 64
class UnixSocketServer {
public:
UnixSocketServer();
private:
[[noreturn]] void server_loop();
std::thread server_thread;
};
#endif //COMPLIB_SERVER_UNIXSOCKETSERVER_HPP