Changeset 155 for uKadecot/trunk/uip/apps/webserver/httpd.h
- Timestamp:
- Feb 4, 2016, 11:11:09 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uKadecot/trunk/uip/apps/webserver/httpd.h
r154 r155 47 47 char inputbuf[50]; 48 48 char state; 49 int drv; 50 char *filename; 51 int len; 52 struct httpd_fs_file file; 53 int parse_pos; 54 int parse_len; 55 struct http_parser parser; 56 struct http_parser_url handle; 57 struct message message; 58 struct websocket websocket; 59 int close_req; 49 union{ 50 struct{ 51 int parse_pos; 52 int parse_len; 53 struct http_parser parser; 54 struct http_parser_url handle; 55 struct message message; 56 }; 57 struct{ 58 char _dummy1[340]; 59 int drv; 60 char filename[256]; 61 int len; 62 struct httpd_fs_file file; 63 }; 64 struct{ 65 char _dummy2[340]; 66 struct websocket websocket; 67 int close_req; 68 }; 69 }; 60 70 }; 61 71 #define get_context(p) (struct httpd_state *)((intptr_t)p - (intptr_t)&((struct httpd_state *)0)->parser)
Note:
See TracChangeset
for help on using the changeset viewer.