clean: split code in multiple files

This commit is contained in:
2025-10-30 10:20:31 -05:00
parent 94ae14f105
commit 8744d4490b
7 changed files with 196 additions and 153 deletions

8
src/packet.h Normal file
View File

@ -0,0 +1,8 @@
#pragma once
#include <stddef.h>
int packet_compare(const char *sent, const char *received, size_t packet_size);
int packet_check(char *packet, size_t packet_size);
int packet_update(char *packet, size_t payload_size);
void *packet_create(size_t payload_size);