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

Committer:
RodColeman
Date:
Thu Sep 08 10:41:36 2011 +0000
Revision:
0:8f5825f330b0
setDataLen hacked to 180bytes

Who changed what in which revision?

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