ソースの整理中ですが、利用はできます。

Dependencies:   EthernetInterface HttpServer TextLCD mbed-rpc mbed-rtos mbed Socket lwip-eth lwip-sys lwip

Committer:
yueee_yt
Date:
Wed Mar 12 04:19:54 2014 +0000
Revision:
0:7766f6712673
???????????????

Who changed what in which revision?

UserRevisionLine numberNew contents of line
yueee_yt 0:7766f6712673 1 /*
yueee_yt 0:7766f6712673 2 * Copyright (c) 2001-2004 Swedish Institute of Computer Science.
yueee_yt 0:7766f6712673 3 * All rights reserved.
yueee_yt 0:7766f6712673 4 *
yueee_yt 0:7766f6712673 5 * Redistribution and use in source and binary forms, with or without modification,
yueee_yt 0:7766f6712673 6 * are permitted provided that the following conditions are met:
yueee_yt 0:7766f6712673 7 *
yueee_yt 0:7766f6712673 8 * 1. Redistributions of source code must retain the above copyright notice,
yueee_yt 0:7766f6712673 9 * this list of conditions and the following disclaimer.
yueee_yt 0:7766f6712673 10 * 2. Redistributions in binary form must reproduce the above copyright notice,
yueee_yt 0:7766f6712673 11 * this list of conditions and the following disclaimer in the documentation
yueee_yt 0:7766f6712673 12 * and/or other materials provided with the distribution.
yueee_yt 0:7766f6712673 13 * 3. The name of the author may not be used to endorse or promote products
yueee_yt 0:7766f6712673 14 * derived from this software without specific prior written permission.
yueee_yt 0:7766f6712673 15 *
yueee_yt 0:7766f6712673 16 * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED
yueee_yt 0:7766f6712673 17 * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
yueee_yt 0:7766f6712673 18 * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT
yueee_yt 0:7766f6712673 19 * SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
yueee_yt 0:7766f6712673 20 * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT
yueee_yt 0:7766f6712673 21 * OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
yueee_yt 0:7766f6712673 22 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
yueee_yt 0:7766f6712673 23 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING
yueee_yt 0:7766f6712673 24 * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY
yueee_yt 0:7766f6712673 25 * OF SUCH DAMAGE.
yueee_yt 0:7766f6712673 26 *
yueee_yt 0:7766f6712673 27 * This file is part of the lwIP TCP/IP stack.
yueee_yt 0:7766f6712673 28 *
yueee_yt 0:7766f6712673 29 * Author: Adam Dunkels <adam@sics.se>
yueee_yt 0:7766f6712673 30 *
yueee_yt 0:7766f6712673 31 */
yueee_yt 0:7766f6712673 32 #ifndef __LWIP_ERR_H__
yueee_yt 0:7766f6712673 33 #define __LWIP_ERR_H__
yueee_yt 0:7766f6712673 34
yueee_yt 0:7766f6712673 35 #include "lwip/opt.h"
yueee_yt 0:7766f6712673 36 #include "lwip/arch.h"
yueee_yt 0:7766f6712673 37
yueee_yt 0:7766f6712673 38 #ifdef __cplusplus
yueee_yt 0:7766f6712673 39 extern "C" {
yueee_yt 0:7766f6712673 40 #endif
yueee_yt 0:7766f6712673 41
yueee_yt 0:7766f6712673 42 /** Define LWIP_ERR_T in cc.h if you want to use
yueee_yt 0:7766f6712673 43 * a different type for your platform (must be signed). */
yueee_yt 0:7766f6712673 44 #ifdef LWIP_ERR_T
yueee_yt 0:7766f6712673 45 typedef LWIP_ERR_T err_t;
yueee_yt 0:7766f6712673 46 #else /* LWIP_ERR_T */
yueee_yt 0:7766f6712673 47 typedef s8_t err_t;
yueee_yt 0:7766f6712673 48 #endif /* LWIP_ERR_T*/
yueee_yt 0:7766f6712673 49
yueee_yt 0:7766f6712673 50 /* Definitions for error constants. */
yueee_yt 0:7766f6712673 51
yueee_yt 0:7766f6712673 52 #define ERR_OK 0 /* No error, everything OK. */
yueee_yt 0:7766f6712673 53 #define ERR_MEM -1 /* Out of memory error. */
yueee_yt 0:7766f6712673 54 #define ERR_BUF -2 /* Buffer error. */
yueee_yt 0:7766f6712673 55 #define ERR_TIMEOUT -3 /* Timeout. */
yueee_yt 0:7766f6712673 56 #define ERR_RTE -4 /* Routing problem. */
yueee_yt 0:7766f6712673 57 #define ERR_INPROGRESS -5 /* Operation in progress */
yueee_yt 0:7766f6712673 58 #define ERR_VAL -6 /* Illegal value. */
yueee_yt 0:7766f6712673 59 #define ERR_WOULDBLOCK -7 /* Operation would block. */
yueee_yt 0:7766f6712673 60 #define ERR_USE -8 /* Address in use. */
yueee_yt 0:7766f6712673 61 #define ERR_ISCONN -9 /* Already connected. */
yueee_yt 0:7766f6712673 62
yueee_yt 0:7766f6712673 63 #define ERR_IS_FATAL(e) ((e) < ERR_ISCONN)
yueee_yt 0:7766f6712673 64
yueee_yt 0:7766f6712673 65 #define ERR_ABRT -10 /* Connection aborted. */
yueee_yt 0:7766f6712673 66 #define ERR_RST -11 /* Connection reset. */
yueee_yt 0:7766f6712673 67 #define ERR_CLSD -12 /* Connection closed. */
yueee_yt 0:7766f6712673 68 #define ERR_CONN -13 /* Not connected. */
yueee_yt 0:7766f6712673 69
yueee_yt 0:7766f6712673 70 #define ERR_ARG -14 /* Illegal argument. */
yueee_yt 0:7766f6712673 71
yueee_yt 0:7766f6712673 72 #define ERR_IF -15 /* Low-level netif error */
yueee_yt 0:7766f6712673 73
yueee_yt 0:7766f6712673 74
yueee_yt 0:7766f6712673 75 #ifdef LWIP_DEBUG
yueee_yt 0:7766f6712673 76 extern const char *lwip_strerr(err_t err);
yueee_yt 0:7766f6712673 77 #else
yueee_yt 0:7766f6712673 78 #define lwip_strerr(x) ""
yueee_yt 0:7766f6712673 79 #endif /* LWIP_DEBUG */
yueee_yt 0:7766f6712673 80
yueee_yt 0:7766f6712673 81 #ifdef __cplusplus
yueee_yt 0:7766f6712673 82 }
yueee_yt 0:7766f6712673 83 #endif
yueee_yt 0:7766f6712673 84
yueee_yt 0:7766f6712673 85 #endif /* __LWIP_ERR_H__ */