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/include/netif/slipif.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 | * Copyright (c) 2001, Swedish Institute of Computer Science. |
andrewbonney | 0:ec559500a63f | 3 | * All rights reserved. |
andrewbonney | 0:ec559500a63f | 4 | * |
andrewbonney | 0:ec559500a63f | 5 | * Redistribution and use in source and binary forms, with or without |
andrewbonney | 0:ec559500a63f | 6 | * modification, are permitted provided that the following conditions |
andrewbonney | 0:ec559500a63f | 7 | * are met: |
andrewbonney | 0:ec559500a63f | 8 | * 1. Redistributions of source code must retain the above copyright |
andrewbonney | 0:ec559500a63f | 9 | * notice, this list of conditions and the following disclaimer. |
andrewbonney | 0:ec559500a63f | 10 | * 2. Redistributions in binary form must reproduce the above copyright |
andrewbonney | 0:ec559500a63f | 11 | * notice, this list of conditions and the following disclaimer in the |
andrewbonney | 0:ec559500a63f | 12 | * documentation and/or other materials provided with the distribution. |
andrewbonney | 0:ec559500a63f | 13 | * 3. Neither the name of the Institute nor the names of its contributors |
andrewbonney | 0:ec559500a63f | 14 | * may be used to endorse or promote products derived from this software |
andrewbonney | 0:ec559500a63f | 15 | * without specific prior written permission. |
andrewbonney | 0:ec559500a63f | 16 | * |
andrewbonney | 0:ec559500a63f | 17 | * THIS SOFTWARE IS PROVIDED BY THE INSTITUTE AND CONTRIBUTORS ``AS IS'' AND |
andrewbonney | 0:ec559500a63f | 18 | * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE |
andrewbonney | 0:ec559500a63f | 19 | * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE |
andrewbonney | 0:ec559500a63f | 20 | * ARE DISCLAIMED. IN NO EVENT SHALL THE INSTITUTE OR CONTRIBUTORS BE LIABLE |
andrewbonney | 0:ec559500a63f | 21 | * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL |
andrewbonney | 0:ec559500a63f | 22 | * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS |
andrewbonney | 0:ec559500a63f | 23 | * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) |
andrewbonney | 0:ec559500a63f | 24 | * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT |
andrewbonney | 0:ec559500a63f | 25 | * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY |
andrewbonney | 0:ec559500a63f | 26 | * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF |
andrewbonney | 0:ec559500a63f | 27 | * SUCH DAMAGE. |
andrewbonney | 0:ec559500a63f | 28 | * |
andrewbonney | 0:ec559500a63f | 29 | * This file is part of the lwIP TCP/IP stack. |
andrewbonney | 0:ec559500a63f | 30 | * |
andrewbonney | 0:ec559500a63f | 31 | * Author: Adam Dunkels <adam@sics.se> |
andrewbonney | 0:ec559500a63f | 32 | * |
andrewbonney | 0:ec559500a63f | 33 | */ |
andrewbonney | 0:ec559500a63f | 34 | #ifndef __NETIF_SLIPIF_H__ |
andrewbonney | 0:ec559500a63f | 35 | #define __NETIF_SLIPIF_H__ |
andrewbonney | 0:ec559500a63f | 36 | |
andrewbonney | 0:ec559500a63f | 37 | #include "lwip/netif.h" |
andrewbonney | 0:ec559500a63f | 38 | |
andrewbonney | 0:ec559500a63f | 39 | #ifdef __cplusplus |
andrewbonney | 0:ec559500a63f | 40 | extern "C" { |
andrewbonney | 0:ec559500a63f | 41 | #endif |
andrewbonney | 0:ec559500a63f | 42 | |
andrewbonney | 0:ec559500a63f | 43 | err_t slipif_init(struct netif * netif); |
andrewbonney | 0:ec559500a63f | 44 | void slipif_poll(struct netif *netif); |
andrewbonney | 0:ec559500a63f | 45 | |
andrewbonney | 0:ec559500a63f | 46 | #ifdef __cplusplus |
andrewbonney | 0:ec559500a63f | 47 | } |
andrewbonney | 0:ec559500a63f | 48 | #endif |
andrewbonney | 0:ec559500a63f | 49 | |
andrewbonney | 0:ec559500a63f | 50 | #endif |
andrewbonney | 0:ec559500a63f | 51 |