diff options
| author | Soikk | 2025-12-01 22:57:12 +0100 |
|---|---|---|
| committer | Soikk | 2025-12-01 22:57:12 +0100 |
| commit | 534303b80b5304a2b29d456d6b5c7a6ac1daaf1c (patch) | |
| tree | 7125871c4995fa93f232dc5ffcc194257216febf /src/ipc/ipc.h | |
| parent | 718c999cfcac7a84ae78b47359d05281e9fda6b3 (diff) | |
| download | soikk-server-534303b80b5304a2b29d456d6b5c7a6ac1daaf1c.tar.xz soikk-server-534303b80b5304a2b29d456d6b5c7a6ac1daaf1c.tar.zst | |
Removed local sockets IPC and some cleanup
Diffstat (limited to 'src/ipc/ipc.h')
| -rwxr-xr-x | src/ipc/ipc.h | 55 |
1 files changed, 0 insertions, 55 deletions
diff --git a/src/ipc/ipc.h b/src/ipc/ipc.h deleted file mode 100755 index 652e62d..0000000 --- a/src/ipc/ipc.h +++ /dev/null @@ -1,55 +0,0 @@ -#ifndef IPC_H -#define IPC_H - -#include <stdio.h> -#include <stdlib.h> -#include <sys/socket.h> -#include <sys/un.h> -#include <string.h> -#include <unistd.h> -#include <errno.h> -#include "str/str.h" -#include "log/log.h" -#include "types/types.h" - - -typedef struct ipc_sender { - str addr; - int ssocket; -} ipc_sender; - -typedef struct ipc_listener { - str saddr; - int csocket; -} ipc_listener; - -typedef enum ipc_type { - NONE, - SOCKET, - REWRITES, // do away with this? - BUNDLE, CERT, KEY, - RESTART, - RELOAD, - HTTP, - HTTPS, - LOG, - UNLOG, -} ipc_type; - -#define MAX_IPC_MSG_LEN 1024 -typedef struct ipc_msg { - ipc_type type; - str msg; -} ipc_msg; - -ipc_sender *setup_ipc_sender(str addr, int backlog); -void destroy_ipc_sender(ipc_sender **is); - -ipc_listener *setup_ipc_listener(str saddr); -void destroy_ipc_listener(ipc_listener **il); - -int send_ipc_message(int to, ipc_type type, str msg); -ipc_msg receive_ipc_message(ipc_listener *il); -void free_ipc_message(ipc_msg *im); - -#endif
\ No newline at end of file |
