TCP Node boilerplate; CLI interface

This commit is contained in:
2026-04-23 16:24:26 +02:00
parent d631eb190d
commit 9c99eec3a8
13 changed files with 1635 additions and 578 deletions

View File

@@ -1,9 +1,17 @@
#ifndef PACKETTYPE_H
#define PACKETTYPE_H
#include <stdint.h>
typedef enum {
PACKET_TYPE_NONE = 0,
// Add more here
} PacketType;
PACKET_TYPE_REQUEST = 1,
PACKET_TYPE_RESPONSE = 2,
PACKET_TYPE_MAX = 3
} packet_type_t;
static inline int PacketType_IsValid(uint8_t packetType) {
return packetType > PACKET_TYPE_NONE && packetType < PACKET_TYPE_MAX;
}
#endif