Impl basic ws binary proto with data and execution state manipulation

This commit is contained in:
2025-10-10 03:19:45 +03:00
parent 2ff6b1a454
commit 165a96aa3c
44 changed files with 2065 additions and 2269 deletions

37
inc/proto/enums.h Normal file
View File

@@ -0,0 +1,37 @@
#ifndef __PROTO_ENUMS_H__
#define __PROTO_ENUMS_H__
#define REG_EVTYPE_CONNECT 1
#define REG_EVTYPE_AUTH 2
#define REG_EVTYPE_CLOSE 3
#define PACKET_TYPE_CTRL 0b0001
#define PACKET_TYPE_STREAM 0b0010
#define PACKET_TYPE_MEM 0b0011
#define CTRL_TYPE_EXEC 0b0001
#define CTRL_TYPE_NOTIF_STATE 0b0010
#define CTRL_TYPE_LIST_ORPHANED 0b1001
#define CTRL_TYPE_LOAD_FAILED 0b1010
#define CTRL_TYPE_SETUP_CONNECTION 0b1011
#define NOTIF_TYPE_EXEC 0b0000
#define STREAM_TYPE_REG_REQUEST 0b001
#define STREAM_TYPE_REG_DISCARD 0b011
#define STREAM_TYPE_REG_CONFIRM 0b101
#define STREAM_TYPE_SEND 0b000
#define MEM_TYPE_READ_REQ 0b0000
#define MEM_TYPE_READ_RESP 0b0001
#define MEM_TYPE_WRITE_PUSH 0b0010
#endif //ifndef __PROTO_ENUMS_H__