I have a problem getting this to work. Server only recieves half of the data being sent. Whats wrong

Dependencies:   mbed

Committer:
tax
Date:
Tue Mar 29 13:20:15 2011 +0000
Revision:
0:66300c77c6e9

        

Who changed what in which revision?

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