Files
chat_rebot-connect-with-one…/c/network/protocal.h

17 lines
280 B
C

#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