Modified version of NetServices. Fixes an issue where connections failed should the HTTP response status line be received in a packet on its own prior to any further headers. Changes are made to the HTTPClient.cpp file's readHeaders method.
lwip/arch/sys_arch.h@0:ec559500a63f, 2011-04-08 (annotated)
- Committer:
- andrewbonney
- Date:
- Fri Apr 08 14:39:41 2011 +0000
- Revision:
- 0:ec559500a63f
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
andrewbonney | 0:ec559500a63f | 1 | /* |
andrewbonney | 0:ec559500a63f | 2 | * Author: Adam Dunkels <adam@sics.se> |
andrewbonney | 0:ec559500a63f | 3 | * |
andrewbonney | 0:ec559500a63f | 4 | */ |
andrewbonney | 0:ec559500a63f | 5 | #ifndef __LWIP_SYS_ARCH_H__ |
andrewbonney | 0:ec559500a63f | 6 | #define __LWIP_SYS_ARCH_H__ |
andrewbonney | 0:ec559500a63f | 7 | |
andrewbonney | 0:ec559500a63f | 8 | typedef unsigned int u32_t; |
andrewbonney | 0:ec559500a63f | 9 | |
andrewbonney | 0:ec559500a63f | 10 | #ifdef __cplusplus |
andrewbonney | 0:ec559500a63f | 11 | extern "C" { |
andrewbonney | 0:ec559500a63f | 12 | #endif |
andrewbonney | 0:ec559500a63f | 13 | |
andrewbonney | 0:ec559500a63f | 14 | //DG 2010 |
andrewbonney | 0:ec559500a63f | 15 | void sys_init(void); /* To be called first */ |
andrewbonney | 0:ec559500a63f | 16 | u32_t sys_jiffies(void); /* since power up. */ |
andrewbonney | 0:ec559500a63f | 17 | |
andrewbonney | 0:ec559500a63f | 18 | /** Returns the current time in milliseconds, |
andrewbonney | 0:ec559500a63f | 19 | * may be the same as sys_jiffies or at least based on it. */ |
andrewbonney | 0:ec559500a63f | 20 | u32_t sys_now(void); |
andrewbonney | 0:ec559500a63f | 21 | |
andrewbonney | 0:ec559500a63f | 22 | #ifdef __cplusplus |
andrewbonney | 0:ec559500a63f | 23 | } |
andrewbonney | 0:ec559500a63f | 24 | #endif |
andrewbonney | 0:ec559500a63f | 25 | |
andrewbonney | 0:ec559500a63f | 26 | |
andrewbonney | 0:ec559500a63f | 27 | #endif /* __LWIP_ARCH_CC_H__ */ |