修复部分bug,添加内存池,为后续内存池化分配打基础

This commit is contained in:
2026-02-18 14:46:33 +08:00
parent 19e0392db6
commit b23828cd5c
8 changed files with 224 additions and 4 deletions

17
c/network/protocal.h Normal file
View File

@ -0,0 +1,17 @@
#ifndef PROTOCAL
#define PROTOCAL
typedef struct network_pakage
{
char *data;
int buf_block;
}network_package;
typedef struct net_protocal
{
void *protocal;
int (*init)(void *self);
int (*rev_message)(void *self,network_package *data);
}net_protocal;
#endif