An example HTTP Server using new Ethernet Interface and localfilesystem.

Dependencies:   EthernetInterface HttpServer mbed-rpc mbed-rtos mbed

Fork of giken9_HTMLServer_Sample by Yasushi TAUCHI

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_API_H__
yueee_yt 0:7766f6712673 33 #define __LWIP_API_H__
yueee_yt 0:7766f6712673 34
yueee_yt 0:7766f6712673 35 #include "lwip/opt.h"
yueee_yt 0:7766f6712673 36
yueee_yt 0:7766f6712673 37 #if LWIP_NETCONN /* don't build if not configured for use in lwipopts.h */
yueee_yt 0:7766f6712673 38
yueee_yt 0:7766f6712673 39 #include <stddef.h> /* for size_t */
yueee_yt 0:7766f6712673 40
yueee_yt 0:7766f6712673 41 #include "lwip/netbuf.h"
yueee_yt 0:7766f6712673 42 #include "lwip/sys.h"
yueee_yt 0:7766f6712673 43 #include "lwip/ip_addr.h"
yueee_yt 0:7766f6712673 44 #include "lwip/err.h"
yueee_yt 0:7766f6712673 45
yueee_yt 0:7766f6712673 46 #ifdef __cplusplus
yueee_yt 0:7766f6712673 47 extern "C" {
yueee_yt 0:7766f6712673 48 #endif
yueee_yt 0:7766f6712673 49
yueee_yt 0:7766f6712673 50 /* Throughout this file, IP addresses and port numbers are expected to be in
yueee_yt 0:7766f6712673 51 * the same byte order as in the corresponding pcb.
yueee_yt 0:7766f6712673 52 */
yueee_yt 0:7766f6712673 53
yueee_yt 0:7766f6712673 54 /* Flags for netconn_write (u8_t) */
yueee_yt 0:7766f6712673 55 #define NETCONN_NOFLAG 0x00
yueee_yt 0:7766f6712673 56 #define NETCONN_NOCOPY 0x00 /* Only for source code compatibility */
yueee_yt 0:7766f6712673 57 #define NETCONN_COPY 0x01
yueee_yt 0:7766f6712673 58 #define NETCONN_MORE 0x02
yueee_yt 0:7766f6712673 59 #define NETCONN_DONTBLOCK 0x04
yueee_yt 0:7766f6712673 60
yueee_yt 0:7766f6712673 61 /* Flags for struct netconn.flags (u8_t) */
yueee_yt 0:7766f6712673 62 /** TCP: when data passed to netconn_write doesn't fit into the send buffer,
yueee_yt 0:7766f6712673 63 this temporarily stores whether to wake up the original application task
yueee_yt 0:7766f6712673 64 if data couldn't be sent in the first try. */
yueee_yt 0:7766f6712673 65 #define NETCONN_FLAG_WRITE_DELAYED 0x01
yueee_yt 0:7766f6712673 66 /** Should this netconn avoid blocking? */
yueee_yt 0:7766f6712673 67 #define NETCONN_FLAG_NON_BLOCKING 0x02
yueee_yt 0:7766f6712673 68 /** Was the last connect action a non-blocking one? */
yueee_yt 0:7766f6712673 69 #define NETCONN_FLAG_IN_NONBLOCKING_CONNECT 0x04
yueee_yt 0:7766f6712673 70 /** If this is set, a TCP netconn must call netconn_recved() to update
yueee_yt 0:7766f6712673 71 the TCP receive window (done automatically if not set). */
yueee_yt 0:7766f6712673 72 #define NETCONN_FLAG_NO_AUTO_RECVED 0x08
yueee_yt 0:7766f6712673 73 /** If a nonblocking write has been rejected before, poll_tcp needs to
yueee_yt 0:7766f6712673 74 check if the netconn is writable again */
yueee_yt 0:7766f6712673 75 #define NETCONN_FLAG_CHECK_WRITESPACE 0x10
yueee_yt 0:7766f6712673 76
yueee_yt 0:7766f6712673 77
yueee_yt 0:7766f6712673 78 /* Helpers to process several netconn_types by the same code */
yueee_yt 0:7766f6712673 79 #define NETCONNTYPE_GROUP(t) (t&0xF0)
yueee_yt 0:7766f6712673 80 #define NETCONNTYPE_DATAGRAM(t) (t&0xE0)
yueee_yt 0:7766f6712673 81
yueee_yt 0:7766f6712673 82 /** Protocol family and type of the netconn */
yueee_yt 0:7766f6712673 83 enum netconn_type {
yueee_yt 0:7766f6712673 84 NETCONN_INVALID = 0,
yueee_yt 0:7766f6712673 85 /* NETCONN_TCP Group */
yueee_yt 0:7766f6712673 86 NETCONN_TCP = 0x10,
yueee_yt 0:7766f6712673 87 /* NETCONN_UDP Group */
yueee_yt 0:7766f6712673 88 NETCONN_UDP = 0x20,
yueee_yt 0:7766f6712673 89 NETCONN_UDPLITE = 0x21,
yueee_yt 0:7766f6712673 90 NETCONN_UDPNOCHKSUM= 0x22,
yueee_yt 0:7766f6712673 91 /* NETCONN_RAW Group */
yueee_yt 0:7766f6712673 92 NETCONN_RAW = 0x40
yueee_yt 0:7766f6712673 93 };
yueee_yt 0:7766f6712673 94
yueee_yt 0:7766f6712673 95 /** Current state of the netconn. Non-TCP netconns are always
yueee_yt 0:7766f6712673 96 * in state NETCONN_NONE! */
yueee_yt 0:7766f6712673 97 enum netconn_state {
yueee_yt 0:7766f6712673 98 NETCONN_NONE,
yueee_yt 0:7766f6712673 99 NETCONN_WRITE,
yueee_yt 0:7766f6712673 100 NETCONN_LISTEN,
yueee_yt 0:7766f6712673 101 NETCONN_CONNECT,
yueee_yt 0:7766f6712673 102 NETCONN_CLOSE
yueee_yt 0:7766f6712673 103 };
yueee_yt 0:7766f6712673 104
yueee_yt 0:7766f6712673 105 /** Use to inform the callback function about changes */
yueee_yt 0:7766f6712673 106 enum netconn_evt {
yueee_yt 0:7766f6712673 107 NETCONN_EVT_RCVPLUS,
yueee_yt 0:7766f6712673 108 NETCONN_EVT_RCVMINUS,
yueee_yt 0:7766f6712673 109 NETCONN_EVT_SENDPLUS,
yueee_yt 0:7766f6712673 110 NETCONN_EVT_SENDMINUS,
yueee_yt 0:7766f6712673 111 NETCONN_EVT_ERROR
yueee_yt 0:7766f6712673 112 };
yueee_yt 0:7766f6712673 113
yueee_yt 0:7766f6712673 114 #if LWIP_IGMP
yueee_yt 0:7766f6712673 115 /** Used for netconn_join_leave_group() */
yueee_yt 0:7766f6712673 116 enum netconn_igmp {
yueee_yt 0:7766f6712673 117 NETCONN_JOIN,
yueee_yt 0:7766f6712673 118 NETCONN_LEAVE
yueee_yt 0:7766f6712673 119 };
yueee_yt 0:7766f6712673 120 #endif /* LWIP_IGMP */
yueee_yt 0:7766f6712673 121
yueee_yt 0:7766f6712673 122 /* forward-declare some structs to avoid to include their headers */
yueee_yt 0:7766f6712673 123 struct ip_pcb;
yueee_yt 0:7766f6712673 124 struct tcp_pcb;
yueee_yt 0:7766f6712673 125 struct udp_pcb;
yueee_yt 0:7766f6712673 126 struct raw_pcb;
yueee_yt 0:7766f6712673 127 struct netconn;
yueee_yt 0:7766f6712673 128 struct api_msg_msg;
yueee_yt 0:7766f6712673 129
yueee_yt 0:7766f6712673 130 /** A callback prototype to inform about events for a netconn */
yueee_yt 0:7766f6712673 131 typedef void (* netconn_callback)(struct netconn *, enum netconn_evt, u16_t len);
yueee_yt 0:7766f6712673 132
yueee_yt 0:7766f6712673 133 /** A netconn descriptor */
yueee_yt 0:7766f6712673 134 struct netconn {
yueee_yt 0:7766f6712673 135 /** type of the netconn (TCP, UDP or RAW) */
yueee_yt 0:7766f6712673 136 enum netconn_type type;
yueee_yt 0:7766f6712673 137 /** current state of the netconn */
yueee_yt 0:7766f6712673 138 enum netconn_state state;
yueee_yt 0:7766f6712673 139 /** the lwIP internal protocol control block */
yueee_yt 0:7766f6712673 140 union {
yueee_yt 0:7766f6712673 141 struct ip_pcb *ip;
yueee_yt 0:7766f6712673 142 struct tcp_pcb *tcp;
yueee_yt 0:7766f6712673 143 struct udp_pcb *udp;
yueee_yt 0:7766f6712673 144 struct raw_pcb *raw;
yueee_yt 0:7766f6712673 145 } pcb;
yueee_yt 0:7766f6712673 146 /** the last error this netconn had */
yueee_yt 0:7766f6712673 147 err_t last_err;
yueee_yt 0:7766f6712673 148 /** sem that is used to synchroneously execute functions in the core context */
yueee_yt 0:7766f6712673 149 sys_sem_t op_completed;
yueee_yt 0:7766f6712673 150 /** mbox where received packets are stored until they are fetched
yueee_yt 0:7766f6712673 151 by the netconn application thread (can grow quite big) */
yueee_yt 0:7766f6712673 152 sys_mbox_t recvmbox;
yueee_yt 0:7766f6712673 153 #if LWIP_TCP
yueee_yt 0:7766f6712673 154 /** mbox where new connections are stored until processed
yueee_yt 0:7766f6712673 155 by the application thread */
yueee_yt 0:7766f6712673 156 sys_mbox_t acceptmbox;
yueee_yt 0:7766f6712673 157 #endif /* LWIP_TCP */
yueee_yt 0:7766f6712673 158 /** only used for socket layer */
yueee_yt 0:7766f6712673 159 #if LWIP_SOCKET
yueee_yt 0:7766f6712673 160 int socket;
yueee_yt 0:7766f6712673 161 #endif /* LWIP_SOCKET */
yueee_yt 0:7766f6712673 162 #if LWIP_SO_RCVTIMEO
yueee_yt 0:7766f6712673 163 /** timeout to wait for new data to be received
yueee_yt 0:7766f6712673 164 (or connections to arrive for listening netconns) */
yueee_yt 0:7766f6712673 165 int recv_timeout;
yueee_yt 0:7766f6712673 166 #endif /* LWIP_SO_RCVTIMEO */
yueee_yt 0:7766f6712673 167 #if LWIP_SO_RCVBUF
yueee_yt 0:7766f6712673 168 /** maximum amount of bytes queued in recvmbox
yueee_yt 0:7766f6712673 169 not used for TCP: adjust TCP_WND instead! */
yueee_yt 0:7766f6712673 170 int recv_bufsize;
yueee_yt 0:7766f6712673 171 /** number of bytes currently in recvmbox to be received,
yueee_yt 0:7766f6712673 172 tested against recv_bufsize to limit bytes on recvmbox
yueee_yt 0:7766f6712673 173 for UDP and RAW, used for FIONREAD */
yueee_yt 0:7766f6712673 174 s16_t recv_avail;
yueee_yt 0:7766f6712673 175 #endif /* LWIP_SO_RCVBUF */
yueee_yt 0:7766f6712673 176 /** flags holding more netconn-internal state, see NETCONN_FLAG_* defines */
yueee_yt 0:7766f6712673 177 u8_t flags;
yueee_yt 0:7766f6712673 178 #if LWIP_TCP
yueee_yt 0:7766f6712673 179 /** TCP: when data passed to netconn_write doesn't fit into the send buffer,
yueee_yt 0:7766f6712673 180 this temporarily stores how much is already sent. */
yueee_yt 0:7766f6712673 181 size_t write_offset;
yueee_yt 0:7766f6712673 182 /** TCP: when data passed to netconn_write doesn't fit into the send buffer,
yueee_yt 0:7766f6712673 183 this temporarily stores the message.
yueee_yt 0:7766f6712673 184 Also used during connect and close. */
yueee_yt 0:7766f6712673 185 struct api_msg_msg *current_msg;
yueee_yt 0:7766f6712673 186 #endif /* LWIP_TCP */
yueee_yt 0:7766f6712673 187 /** A callback function that is informed about events for this netconn */
yueee_yt 0:7766f6712673 188 netconn_callback callback;
yueee_yt 0:7766f6712673 189 };
yueee_yt 0:7766f6712673 190
yueee_yt 0:7766f6712673 191 /** Register an Network connection event */
yueee_yt 0:7766f6712673 192 #define API_EVENT(c,e,l) if (c->callback) { \
yueee_yt 0:7766f6712673 193 (*c->callback)(c, e, l); \
yueee_yt 0:7766f6712673 194 }
yueee_yt 0:7766f6712673 195
yueee_yt 0:7766f6712673 196 /** Set conn->last_err to err but don't overwrite fatal errors */
yueee_yt 0:7766f6712673 197 #define NETCONN_SET_SAFE_ERR(conn, err) do { \
yueee_yt 0:7766f6712673 198 SYS_ARCH_DECL_PROTECT(lev); \
yueee_yt 0:7766f6712673 199 SYS_ARCH_PROTECT(lev); \
yueee_yt 0:7766f6712673 200 if (!ERR_IS_FATAL((conn)->last_err)) { \
yueee_yt 0:7766f6712673 201 (conn)->last_err = err; \
yueee_yt 0:7766f6712673 202 } \
yueee_yt 0:7766f6712673 203 SYS_ARCH_UNPROTECT(lev); \
yueee_yt 0:7766f6712673 204 } while(0);
yueee_yt 0:7766f6712673 205
yueee_yt 0:7766f6712673 206 /* Network connection functions: */
yueee_yt 0:7766f6712673 207 #define netconn_new(t) netconn_new_with_proto_and_callback(t, 0, NULL)
yueee_yt 0:7766f6712673 208 #define netconn_new_with_callback(t, c) netconn_new_with_proto_and_callback(t, 0, c)
yueee_yt 0:7766f6712673 209 struct
yueee_yt 0:7766f6712673 210 netconn *netconn_new_with_proto_and_callback(enum netconn_type t, u8_t proto,
yueee_yt 0:7766f6712673 211 netconn_callback callback);
yueee_yt 0:7766f6712673 212 err_t netconn_delete(struct netconn *conn);
yueee_yt 0:7766f6712673 213 /** Get the type of a netconn (as enum netconn_type). */
yueee_yt 0:7766f6712673 214 #define netconn_type(conn) (conn->type)
yueee_yt 0:7766f6712673 215
yueee_yt 0:7766f6712673 216 err_t netconn_getaddr(struct netconn *conn, ip_addr_t *addr,
yueee_yt 0:7766f6712673 217 u16_t *port, u8_t local);
yueee_yt 0:7766f6712673 218 #define netconn_peer(c,i,p) netconn_getaddr(c,i,p,0)
yueee_yt 0:7766f6712673 219 #define netconn_addr(c,i,p) netconn_getaddr(c,i,p,1)
yueee_yt 0:7766f6712673 220
yueee_yt 0:7766f6712673 221 err_t netconn_bind(struct netconn *conn, ip_addr_t *addr, u16_t port);
yueee_yt 0:7766f6712673 222 err_t netconn_connect(struct netconn *conn, ip_addr_t *addr, u16_t port);
yueee_yt 0:7766f6712673 223 err_t netconn_disconnect (struct netconn *conn);
yueee_yt 0:7766f6712673 224 err_t netconn_listen_with_backlog(struct netconn *conn, u8_t backlog);
yueee_yt 0:7766f6712673 225 #define netconn_listen(conn) netconn_listen_with_backlog(conn, TCP_DEFAULT_LISTEN_BACKLOG)
yueee_yt 0:7766f6712673 226 err_t netconn_accept(struct netconn *conn, struct netconn **new_conn);
yueee_yt 0:7766f6712673 227 err_t netconn_recv(struct netconn *conn, struct netbuf **new_buf);
yueee_yt 0:7766f6712673 228 err_t netconn_recv_tcp_pbuf(struct netconn *conn, struct pbuf **new_buf);
yueee_yt 0:7766f6712673 229 void netconn_recved(struct netconn *conn, u32_t length);
yueee_yt 0:7766f6712673 230 err_t netconn_sendto(struct netconn *conn, struct netbuf *buf,
yueee_yt 0:7766f6712673 231 ip_addr_t *addr, u16_t port);
yueee_yt 0:7766f6712673 232 err_t netconn_send(struct netconn *conn, struct netbuf *buf);
yueee_yt 0:7766f6712673 233 err_t netconn_write(struct netconn *conn, const void *dataptr, size_t size,
yueee_yt 0:7766f6712673 234 u8_t apiflags);
yueee_yt 0:7766f6712673 235 err_t netconn_close(struct netconn *conn);
yueee_yt 0:7766f6712673 236 err_t netconn_shutdown(struct netconn *conn, u8_t shut_rx, u8_t shut_tx);
yueee_yt 0:7766f6712673 237
yueee_yt 0:7766f6712673 238 #if LWIP_IGMP
yueee_yt 0:7766f6712673 239 err_t netconn_join_leave_group(struct netconn *conn, ip_addr_t *multiaddr,
yueee_yt 0:7766f6712673 240 ip_addr_t *netif_addr, enum netconn_igmp join_or_leave);
yueee_yt 0:7766f6712673 241 #endif /* LWIP_IGMP */
yueee_yt 0:7766f6712673 242 #if LWIP_DNS
yueee_yt 0:7766f6712673 243 err_t netconn_gethostbyname(const char *name, ip_addr_t *addr);
yueee_yt 0:7766f6712673 244 #endif /* LWIP_DNS */
yueee_yt 0:7766f6712673 245
yueee_yt 0:7766f6712673 246 #define netconn_err(conn) ((conn)->last_err)
yueee_yt 0:7766f6712673 247 #define netconn_recv_bufsize(conn) ((conn)->recv_bufsize)
yueee_yt 0:7766f6712673 248
yueee_yt 0:7766f6712673 249 /** Set the blocking status of netconn calls (@todo: write/send is missing) */
yueee_yt 0:7766f6712673 250 #define netconn_set_nonblocking(conn, val) do { if(val) { \
yueee_yt 0:7766f6712673 251 (conn)->flags |= NETCONN_FLAG_NON_BLOCKING; \
yueee_yt 0:7766f6712673 252 } else { \
yueee_yt 0:7766f6712673 253 (conn)->flags &= ~ NETCONN_FLAG_NON_BLOCKING; }} while(0)
yueee_yt 0:7766f6712673 254 /** Get the blocking status of netconn calls (@todo: write/send is missing) */
yueee_yt 0:7766f6712673 255 #define netconn_is_nonblocking(conn) (((conn)->flags & NETCONN_FLAG_NON_BLOCKING) != 0)
yueee_yt 0:7766f6712673 256
yueee_yt 0:7766f6712673 257 /** TCP: Set the no-auto-recved status of netconn calls (see NETCONN_FLAG_NO_AUTO_RECVED) */
yueee_yt 0:7766f6712673 258 #define netconn_set_noautorecved(conn, val) do { if(val) { \
yueee_yt 0:7766f6712673 259 (conn)->flags |= NETCONN_FLAG_NO_AUTO_RECVED; \
yueee_yt 0:7766f6712673 260 } else { \
yueee_yt 0:7766f6712673 261 (conn)->flags &= ~ NETCONN_FLAG_NO_AUTO_RECVED; }} while(0)
yueee_yt 0:7766f6712673 262 /** TCP: Get the no-auto-recved status of netconn calls (see NETCONN_FLAG_NO_AUTO_RECVED) */
yueee_yt 0:7766f6712673 263 #define netconn_get_noautorecved(conn) (((conn)->flags & NETCONN_FLAG_NO_AUTO_RECVED) != 0)
yueee_yt 0:7766f6712673 264
yueee_yt 0:7766f6712673 265 #if LWIP_SO_RCVTIMEO
yueee_yt 0:7766f6712673 266 /** Set the receive timeout in milliseconds */
yueee_yt 0:7766f6712673 267 #define netconn_set_recvtimeout(conn, timeout) ((conn)->recv_timeout = (timeout))
yueee_yt 0:7766f6712673 268 /** Get the receive timeout in milliseconds */
yueee_yt 0:7766f6712673 269 #define netconn_get_recvtimeout(conn) ((conn)->recv_timeout)
yueee_yt 0:7766f6712673 270 #endif /* LWIP_SO_RCVTIMEO */
yueee_yt 0:7766f6712673 271 #if LWIP_SO_RCVBUF
yueee_yt 0:7766f6712673 272 /** Set the receive buffer in bytes */
yueee_yt 0:7766f6712673 273 #define netconn_set_recvbufsize(conn, recvbufsize) ((conn)->recv_bufsize = (recvbufsize))
yueee_yt 0:7766f6712673 274 /** Get the receive buffer in bytes */
yueee_yt 0:7766f6712673 275 #define netconn_get_recvbufsize(conn) ((conn)->recv_bufsize)
yueee_yt 0:7766f6712673 276 #endif /* LWIP_SO_RCVBUF*/
yueee_yt 0:7766f6712673 277
yueee_yt 0:7766f6712673 278 #ifdef __cplusplus
yueee_yt 0:7766f6712673 279 }
yueee_yt 0:7766f6712673 280 #endif
yueee_yt 0:7766f6712673 281
yueee_yt 0:7766f6712673 282 #endif /* LWIP_NETCONN */
yueee_yt 0:7766f6712673 283
yueee_yt 0:7766f6712673 284 #endif /* __LWIP_API_H__ */