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 #include "sys_arch.h"
tax 0:66300c77c6e9 2 #include "mbed.h"
tax 0:66300c77c6e9 3 //DG 2010
tax 0:66300c77c6e9 4
tax 0:66300c77c6e9 5 #ifdef __cplusplus
tax 0:66300c77c6e9 6 extern "C" {
tax 0:66300c77c6e9 7 #endif
tax 0:66300c77c6e9 8
tax 0:66300c77c6e9 9 #ifdef __COMPLEX_AND_BUGGUY_HANDLING__
tax 0:66300c77c6e9 10 static Timer* pTmr = NULL;
tax 0:66300c77c6e9 11
tax 0:66300c77c6e9 12 void sys_init(void)
tax 0:66300c77c6e9 13 {
tax 0:66300c77c6e9 14 //Start Timer
tax 0:66300c77c6e9 15 pTmr = new Timer();
tax 0:66300c77c6e9 16 pTmr->start();
tax 0:66300c77c6e9 17 }
tax 0:66300c77c6e9 18
tax 0:66300c77c6e9 19 u32_t sys_jiffies(void) /* since power up. */
tax 0:66300c77c6e9 20 {
tax 0:66300c77c6e9 21 return (u32_t) (pTmr->read_ms()/10); //In /10ms units
tax 0:66300c77c6e9 22 }
tax 0:66300c77c6e9 23
tax 0:66300c77c6e9 24 u32_t sys_now(void)
tax 0:66300c77c6e9 25 {
tax 0:66300c77c6e9 26 return (u32_t) pTmr->read_ms(); //In /ms units
tax 0:66300c77c6e9 27 }
tax 0:66300c77c6e9 28 #elif0
tax 0:66300c77c6e9 29 void sys_init(void)
tax 0:66300c77c6e9 30 {
tax 0:66300c77c6e9 31
tax 0:66300c77c6e9 32 }
tax 0:66300c77c6e9 33
tax 0:66300c77c6e9 34 u32_t sys_jiffies(void) /* since power up. */
tax 0:66300c77c6e9 35 {
tax 0:66300c77c6e9 36 static int count = 0;
tax 0:66300c77c6e9 37 return ++count;
tax 0:66300c77c6e9 38 }
tax 0:66300c77c6e9 39
tax 0:66300c77c6e9 40 u32_t sys_now(void)
tax 0:66300c77c6e9 41 {
tax 0:66300c77c6e9 42 return (u32_t) time(NULL);
tax 0:66300c77c6e9 43 }
tax 0:66300c77c6e9 44 #else
tax 0:66300c77c6e9 45 static Timer* pTmr = NULL;
tax 0:66300c77c6e9 46
tax 0:66300c77c6e9 47 void sys_init(void)
tax 0:66300c77c6e9 48 {
tax 0:66300c77c6e9 49 //Start Timer
tax 0:66300c77c6e9 50 pTmr = new Timer();
tax 0:66300c77c6e9 51 pTmr->start();
tax 0:66300c77c6e9 52 }
tax 0:66300c77c6e9 53
tax 0:66300c77c6e9 54 u32_t sys_jiffies(void) /* since power up. */
tax 0:66300c77c6e9 55 {
tax 0:66300c77c6e9 56 static int count = 0;
tax 0:66300c77c6e9 57 return ++count;
tax 0:66300c77c6e9 58 //return (u32_t) (pTmr->read_us());
tax 0:66300c77c6e9 59 }
tax 0:66300c77c6e9 60
tax 0:66300c77c6e9 61 u32_t sys_now(void)
tax 0:66300c77c6e9 62 {
tax 0:66300c77c6e9 63 return (u32_t) (pTmr->read_ms()); //In /ms units
tax 0:66300c77c6e9 64 }
tax 0:66300c77c6e9 65 #endif
tax 0:66300c77c6e9 66
tax 0:66300c77c6e9 67
tax 0:66300c77c6e9 68 #ifdef __cplusplus
tax 0:66300c77c6e9 69 }
tax 0:66300c77c6e9 70 #endif