Experimental HTTPClient with proxy support

Committer:
igorsk
Date:
Wed Jun 29 16:01:58 2011 +0000
Revision:
0:b56b6a05cad4

        

Who changed what in which revision?

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