弃用mongoose,倒霉玩意
This commit is contained in:
@ -1,8 +1,7 @@
|
||||
#ifndef NETWORK
|
||||
#define NETWORK
|
||||
|
||||
#define MAX_POOL 10
|
||||
#define MAX_MESSAGE_BUF 1024
|
||||
|
||||
#include <pthread.h>
|
||||
#include "tools/log/log.h"
|
||||
#include "erroprocess/erroprocess.h"
|
||||
@ -23,7 +22,7 @@ typedef struct net_args
|
||||
|
||||
typedef struct network_manager//网络管理器
|
||||
{
|
||||
pth_m pool[MAX_POOL];
|
||||
pth_m pool[NET_MAX_POOL];
|
||||
void *(*run_network)(void*);//启动网络监听
|
||||
int (*start_pool)(struct network_manager*);
|
||||
int (*shutdown_pool)(struct network_manager*);
|
||||
@ -40,7 +39,7 @@ typedef struct network_manager//网络管理器
|
||||
|
||||
typedef struct rebot_message
|
||||
{
|
||||
char raw_message[MAX_MESSAGE_BUF];
|
||||
char raw_message[NET_MAX_MESSAGE_BUF];
|
||||
char nickname[64];
|
||||
char gid[32];
|
||||
char uid[32];
|
||||
|
||||
Reference in New Issue
Block a user