新手入门
- 积分
- 11
- 金钱
- 11
- 注册时间
- 2016-5-22
- 在线时间
- 1 小时
|
1金钱
在这里我实现了web服务器,uip_tcp_appstate_t 定义为了struct httpd_state { unsigned char timer;
struct psock sin, sout;
struct pt outputpt, scriptpt;
char inputbuf[50];
char filename[20];
char state;
struct httpd_fs_file file;
int len;
char *scriptptr;
int scriptlen;
unsigned short count;
};
但是实现udp的时候在网上看了原子的udp_demo.h和udp_demo.c
struct udp_demo_appstate
{
u8 state;
u8 *textptr;
int textlen;
};
typedef struct udp_demo_appstate uip_udp_appstate_t;
这个好像啊冲突了,之后我把state改成了udpstate,程序编译没啥问题,web服务也没问题但是udp始终不成功
|
|