Stripped down version of Segundos NetService library (http://mbed.org/users/segundo/libraries/NetServices ). I have removed all NetServices, and all functions which had been disabled. Use this version when you need only pure TCP or UDP functions - this library compiles faster.

Dependencies:   lwip lwip-sys

Dependents:   christmasLights device_server pop3demo device_server_udp ... more

Committer:
hlipka
Date:
Mon Jan 10 21:03:11 2011 +0000
Revision:
0:8b387bed54c2
initial version

Who changed what in which revision?

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