Copied TCP impl from other project, basic Block implementation, randomx pow, signing via secp256k1

This commit is contained in:
2026-03-29 17:18:23 +02:00
commit 57bfe61c13
26 changed files with 1775 additions and 0 deletions

18
include/packettype.h Normal file
View File

@@ -0,0 +1,18 @@
#ifndef PACKETTYPE_H
#define PACKETTYPE_H
typedef enum {
PACKET_TYPE_NONE = 0,
PACKET_TYPE_HELLO = 1,
PACKET_TYPE_TASK_ASSIGN = 2,
PACKET_TYPE_TASK_RESULT = 3,
PACKET_TYPE_STATUS_UPDATE = 4,
PACKET_TYPE_CLIENT_CAPABILITIES = 5,
PACKET_TYPE_TASK_REQUEST = 6,
PACKET_TYPE_MISSING_INFO = 7,
PACKET_TYPE_ACKNOWLEDGE = 8,
PACKET_TYPE_TASK_REJECT = 9,
PACKET_TYPE_TASK_NONE_AVAILABLE = 10
} PacketType;
#endif