uIP 1.0 based webserver for LPC1114 + ENC28J60

Dependencies:   mbed TMP102

Committer:
ban4jp
Date:
Sat Jun 14 16:02:21 2014 +0000
Revision:
0:685224d2f66d
initial commit.

Who changed what in which revision?

UserRevisionLine numberNew contents of line
ban4jp 0:685224d2f66d 1 /**
ban4jp 0:685224d2f66d 2 * \file
ban4jp 0:685224d2f66d 3 * Various uIP library functions.
ban4jp 0:685224d2f66d 4 * \author
ban4jp 0:685224d2f66d 5 * Adam Dunkels <adam@sics.se>
ban4jp 0:685224d2f66d 6 *
ban4jp 0:685224d2f66d 7 */
ban4jp 0:685224d2f66d 8
ban4jp 0:685224d2f66d 9 /*
ban4jp 0:685224d2f66d 10 * Copyright (c) 2002, Adam Dunkels.
ban4jp 0:685224d2f66d 11 * All rights reserved.
ban4jp 0:685224d2f66d 12 *
ban4jp 0:685224d2f66d 13 * Redistribution and use in source and binary forms, with or without
ban4jp 0:685224d2f66d 14 * modification, are permitted provided that the following conditions
ban4jp 0:685224d2f66d 15 * are met:
ban4jp 0:685224d2f66d 16 * 1. Redistributions of source code must retain the above copyright
ban4jp 0:685224d2f66d 17 * notice, this list of conditions and the following disclaimer.
ban4jp 0:685224d2f66d 18 * 2. Redistributions in binary form must reproduce the above
ban4jp 0:685224d2f66d 19 * copyright notice, this list of conditions and the following
ban4jp 0:685224d2f66d 20 * disclaimer in the documentation and/or other materials provided
ban4jp 0:685224d2f66d 21 * with the distribution.
ban4jp 0:685224d2f66d 22 * 3. The name of the author may not be used to endorse or promote
ban4jp 0:685224d2f66d 23 * products derived from this software without specific prior
ban4jp 0:685224d2f66d 24 * written permission.
ban4jp 0:685224d2f66d 25 *
ban4jp 0:685224d2f66d 26 * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS
ban4jp 0:685224d2f66d 27 * OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
ban4jp 0:685224d2f66d 28 * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
ban4jp 0:685224d2f66d 29 * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY
ban4jp 0:685224d2f66d 30 * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
ban4jp 0:685224d2f66d 31 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
ban4jp 0:685224d2f66d 32 * GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
ban4jp 0:685224d2f66d 33 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
ban4jp 0:685224d2f66d 34 * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
ban4jp 0:685224d2f66d 35 * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
ban4jp 0:685224d2f66d 36 * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
ban4jp 0:685224d2f66d 37 *
ban4jp 0:685224d2f66d 38 * This file is part of the uIP TCP/IP stack
ban4jp 0:685224d2f66d 39 *
ban4jp 0:685224d2f66d 40 * $Id: uiplib.h,v 1.1 2006/06/07 09:15:19 adam Exp $
ban4jp 0:685224d2f66d 41 *
ban4jp 0:685224d2f66d 42 */
ban4jp 0:685224d2f66d 43 #ifndef __UIPLIB_H__
ban4jp 0:685224d2f66d 44 #define __UIPLIB_H__
ban4jp 0:685224d2f66d 45
ban4jp 0:685224d2f66d 46 /**
ban4jp 0:685224d2f66d 47 * \addtogroup uipconvfunc
ban4jp 0:685224d2f66d 48 * @{
ban4jp 0:685224d2f66d 49 */
ban4jp 0:685224d2f66d 50
ban4jp 0:685224d2f66d 51 /**
ban4jp 0:685224d2f66d 52 * Convert a textual representation of an IP address to a numerical representation.
ban4jp 0:685224d2f66d 53 *
ban4jp 0:685224d2f66d 54 * This function takes a textual representation of an IP address in
ban4jp 0:685224d2f66d 55 * the form a.b.c.d and converts it into a 4-byte array that can be
ban4jp 0:685224d2f66d 56 * used by other uIP functions.
ban4jp 0:685224d2f66d 57 *
ban4jp 0:685224d2f66d 58 * \param addrstr A pointer to a string containing the IP address in
ban4jp 0:685224d2f66d 59 * textual form.
ban4jp 0:685224d2f66d 60 *
ban4jp 0:685224d2f66d 61 * \param addr A pointer to a 4-byte array that will be filled in with
ban4jp 0:685224d2f66d 62 * the numerical representation of the address.
ban4jp 0:685224d2f66d 63 *
ban4jp 0:685224d2f66d 64 * \retval 0 If the IP address could not be parsed.
ban4jp 0:685224d2f66d 65 * \retval Non-zero If the IP address was parsed.
ban4jp 0:685224d2f66d 66 */
ban4jp 0:685224d2f66d 67 unsigned char uiplib_ipaddrconv(char *addrstr, unsigned char *addr);
ban4jp 0:685224d2f66d 68
ban4jp 0:685224d2f66d 69 /** @} */
ban4jp 0:685224d2f66d 70
ban4jp 0:685224d2f66d 71 #endif /* __UIPLIB_H__ */