Netservices modded to read fragmented HTTP respsonse/payload from special purpose server - 180 bytes only

Committer:
RodColeman
Date:
Thu Sep 08 10:48:09 2011 +0000
Revision:
0:850eacf3e945
revised fixed length to 178 bytes

Who changed what in which revision?

UserRevisionLine numberNew contents of line
RodColeman 0:850eacf3e945 1 /*
RodColeman 0:850eacf3e945 2 * Author: Adam Dunkels <adam@sics.se>
RodColeman 0:850eacf3e945 3 *
RodColeman 0:850eacf3e945 4 */
RodColeman 0:850eacf3e945 5 #ifndef __LWIP_ARCH_CC_H__
RodColeman 0:850eacf3e945 6 #define __LWIP_ARCH_CC_H__
RodColeman 0:850eacf3e945 7
RodColeman 0:850eacf3e945 8 #define LITTLE_ENDIAN 1234
RodColeman 0:850eacf3e945 9
RodColeman 0:850eacf3e945 10 #define BYTE_ORDER LITTLE_ENDIAN
RodColeman 0:850eacf3e945 11
RodColeman 0:850eacf3e945 12 typedef unsigned char u8_t;
RodColeman 0:850eacf3e945 13 typedef signed char s8_t;
RodColeman 0:850eacf3e945 14 typedef unsigned short u16_t;
RodColeman 0:850eacf3e945 15 typedef signed short s16_t;
RodColeman 0:850eacf3e945 16 typedef unsigned int u32_t;
RodColeman 0:850eacf3e945 17 typedef signed int s32_t;
RodColeman 0:850eacf3e945 18 typedef unsigned int mem_ptr_t;
RodColeman 0:850eacf3e945 19
RodColeman 0:850eacf3e945 20 #ifndef NULL
RodColeman 0:850eacf3e945 21 #define NULL 0
RodColeman 0:850eacf3e945 22 #endif
RodColeman 0:850eacf3e945 23
RodColeman 0:850eacf3e945 24 #ifndef TRUE
RodColeman 0:850eacf3e945 25 #define TRUE 1
RodColeman 0:850eacf3e945 26 #endif
RodColeman 0:850eacf3e945 27
RodColeman 0:850eacf3e945 28 #ifndef FALSE
RodColeman 0:850eacf3e945 29 #define FALSE 0
RodColeman 0:850eacf3e945 30 #endif
RodColeman 0:850eacf3e945 31
RodColeman 0:850eacf3e945 32 #include <stdlib.h>
RodColeman 0:850eacf3e945 33 #define LWIP_RAND rand
RodColeman 0:850eacf3e945 34
RodColeman 0:850eacf3e945 35 #define LWIP_PLATFORM_DIAG(x) DBG x
RodColeman 0:850eacf3e945 36 #define LWIP_PLATFORM_ASSERT(x) DBG(x)
RodColeman 0:850eacf3e945 37
RodColeman 0:850eacf3e945 38 #define LWIP_PROVIDE_ERRNO
RodColeman 0:850eacf3e945 39
RodColeman 0:850eacf3e945 40 #define U16_F "hu"
RodColeman 0:850eacf3e945 41 #define S16_F "hd"
RodColeman 0:850eacf3e945 42 #define X16_F "hx"
RodColeman 0:850eacf3e945 43 #define U32_F "lu"
RodColeman 0:850eacf3e945 44 #define S32_F "ld"
RodColeman 0:850eacf3e945 45 #define X32_F "lx"
RodColeman 0:850eacf3e945 46
RodColeman 0:850eacf3e945 47 #if 0
RodColeman 0:850eacf3e945 48 /*Create compilation problems, and according to http://www.mail-archive.com/lwip-users@nongnu.org/msg06786.html,
RodColeman 0:850eacf3e945 49 lwIP uses packed structures, so packing the field is not really a good idea ;) */
RodColeman 0:850eacf3e945 50 #define PACK_STRUCT_FIELD(x) __packed x
RodColeman 0:850eacf3e945 51 #else
RodColeman 0:850eacf3e945 52 #define PACK_STRUCT_FIELD(x) x
RodColeman 0:850eacf3e945 53 #endif
RodColeman 0:850eacf3e945 54
RodColeman 0:850eacf3e945 55 #define PACK_STRUCT_STRUCT
RodColeman 0:850eacf3e945 56 #define PACK_STRUCT_BEGIN __packed
RodColeman 0:850eacf3e945 57 #define PACK_STRUCT_END
RodColeman 0:850eacf3e945 58
RodColeman 0:850eacf3e945 59 #define LWIP_CHKSUM_ALGORITHM 3
RodColeman 0:850eacf3e945 60
RodColeman 0:850eacf3e945 61
RodColeman 0:850eacf3e945 62 #endif /* __LWIP_ARCH_CC_H__ */