//处理客户端发送的数据包
#ifndef __CLIENT_PACKET_H
#define __CLIENT_PACKET_H
#include "packet.h"
#include <afxwin.h>
typedef struct net_packet CLIENT_PACKET; //客户端数据包
#define CLIENT_PACKET_HEADER_SIZE sizeof(CLIENT_PACKET) //客户端数据包首部大小
#define CLIENT_PACKET_MAX_SIZE 512*1024 //客户端数据包最大大小
#define CLIENT_PACKET_BODY_SIZE (CLIENT_PACKET_MAX_SIZE - CLIENT_PACKET_HEADER_SIZE)
class CClientPacket
{
public:
//处理数据包
static int ParsePacket(CWnd *pWnd,link_struct* listNode);
};
#endif