亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? uip.h

?? 58enc28j06protuesuip09.rar
?? H
?? 第 1 頁 / 共 3 頁
字號:
/** * \addtogroup uip * @{ *//** * \file * Header file for the uIP TCP/IP stack. * \author Adam Dunkels <adam@dunkels.com> * * The uIP TCP/IP stack header file contains definitions for a number * of C macros that are used by uIP programs as well as internal uIP * structures, TCP/IP header structures and function declarations. * *//* * Copyright (c) 2001-2003, Adam Dunkels. * All rights reserved.  * * Redistribution and use in source and binary forms, with or without  * modification, are permitted provided that the following conditions  * are met:  * 1. Redistributions of source code must retain the above copyright  *    notice, this list of conditions and the following disclaimer.  * 2. Redistributions in binary form must reproduce the above copyright  *    notice, this list of conditions and the following disclaimer in the  *    documentation and/or other materials provided with the distribution.  * 3. The name of the author may not be used to endorse or promote *    products derived from this software without specific prior *    written permission.   * * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS * OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE * GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.   * * This file is part of the uIP TCP/IP stack. * * $Id: uip.h,v 1.36.2.7 2003/10/07 13:47:51 adam Exp $ * */#ifndef __UIP_H__#define __UIP_H__#include "uipopt.h"/*-----------------------------------------------------------------------------------*//* First, the functions that should be called from the * system. Initialization, the periodic timer and incoming packets are * handled by the following three functions. *//** * \defgroup uipconffunc uIP configuration functions * @{ * * The uIP configuration functions are used for setting run-time * parameters in uIP such as IP addresses.  *//** * Set the IP address of this host. * * The IP address is represented as a 4-byte array where the first * octet of the IP address is put in the first member of the 4-byte * array. * * \param addr A pointer to a 4-byte representation of the IP address. * * \hideinitializer */#define uip_sethostaddr(addr) do { uip_hostaddr[0] = addr[0]; \                              uip_hostaddr[1] = addr[1]; } while(0)/** * Get the IP address of this host. * * The IP address is represented as a 4-byte array where the first * octet of the IP address is put in the first member of the 4-byte * array. * * \param addr A pointer to a 4-byte array that will be filled in with * the currently configured IP address. * * \hideinitializer */#define uip_gethostaddr(addr) do { addr[0] = uip_hostaddr[0]; \                              addr[1] = uip_hostaddr[1]; } while(0)/** @} *//** * \defgroup uipinit uIP initialization functions * @{ * * The uIP initialization functions are used for booting uIP. *//** * uIP initialization function. * * This function should be called at boot up to initilize the uIP * TCP/IP stack. */void uip_init(void);/** @} *//** * \defgroup uipdevfunc uIP device driver functions * @{ * * These functions are used by a network device driver for interacting * with uIP. *//** * Process an incoming packet. * * This function should be called when the device driver has received * a packet from the network. The packet from the device driver must * be present in the uip_buf buffer, and the length of the packet * should be placed in the uip_len variable. * * When the function returns, there may be an outbound packet placed * in the uip_buf packet buffer. If so, the uip_len variable is set to * the length of the packet. If no packet is to be sent out, the * uip_len variable is set to 0. * * The usual way of calling the function is presented by the source * code below. \code  uip_len = devicedriver_poll();  if(uip_len > 0) {    uip_input();    if(uip_len > 0) {      devicedriver_send();    }  } \endcode * * \note If you are writing a uIP device driver that needs ARP * (Address Resolution Protocol), e.g., when running uIP over * Ethernet, you will need to call the uIP ARP code before calling * this function: \code  #define BUF ((struct uip_eth_hdr *)&uip_buf[0])  uip_len = ethernet_devicedrver_poll();  if(uip_len > 0) {    if(BUF->type == HTONS(UIP_ETHTYPE_IP)) {      uip_arp_ipin();      uip_input();      if(uip_len > 0) {        uip_arp_out();	ethernet_devicedriver_send();      }    } else if(BUF->type == HTONS(UIP_ETHTYPE_ARP)) {      uip_arp_arpin();      if(uip_len > 0) {	ethernet_devicedriver_send();      }    } \endcode * * \hideinitializer */#define uip_input()        uip_process(UIP_DATA)/** * Periodic processing for a connection identified by its number. *  * This function does the necessary periodic processing (timers, * polling) for a uIP TCP conneciton, and should be called when the * periodic uIP timer goes off. It should be called for every * connection, regardless of whether they are open of closed. * * When the function returns, it may have an outbound packet waiting * for service in the uIP packet buffer, and if so the uip_len * variable is set to a value larger than zero. The device driver * should be called to send out the packet. * * The ususal way of calling the function is through a for() loop like * this: \code  for(i = 0; i < UIP_CONNS; ++i) {    uip_periodic(i);    if(uip_len > 0) {      devicedriver_send();    }  } \endcode * * \note If you are writing a uIP device driver that needs ARP * (Address Resolution Protocol), e.g., when running uIP over * Ethernet, you will need to call the uip_arp_out() function before * calling the device driver: \code  for(i = 0; i < UIP_CONNS; ++i) {    uip_periodic(i);    if(uip_len > 0) {      uip_arp_out();      ethernet_devicedriver_send();    }  } \endcode  * * \param conn The number of the connection which is to be periodically polled. * * \hideinitializer */#define uip_periodic(conn) do { uip_conn = &uip_conns[conn]; \                                uip_process(UIP_TIMER); } while (0)/** * Periodic processing for a connection identified by a pointer to its structure. * * Same as uip_periodic() but takes a pointer to the actual uip_conn * struct instead of an integer as its argument. This function can be * used to force periodic processing of a specific connection. * * \param conn A pointer to the uip_conn struct for the connection to * be processed. * * \hideinitializer */#define uip_periodic_conn(conn) do { uip_conn = conn; \                                     uip_process(UIP_TIMER); } while (0)#if UIP_UDP/** * Periodic processing for a UDP connection identified by its number. * * This function is essentially the same as uip_prerioic(), but for * UDP connections. It is called in a similar fashion as the * uip_periodic() function: \code  for(i = 0; i < UIP_UDP_CONNS; i++) {    uip_udp_periodic(i);    if(uip_len > 0) {      devicedriver_send();    }  }    \endcode * * \note As for the uip_periodic() function, special care has to be * taken when using uIP together with ARP and Ethernet: \code  for(i = 0; i < UIP_UDP_CONNS; i++) {    uip_udp_periodic(i);    if(uip_len > 0) {      uip_arp_out();      ethernet_devicedriver_send();    }  }    \endcode * * \param conn The number of the UDP connection to be processed. * * \hideinitializer */#define uip_udp_periodic(conn) do { uip_udp_conn = &uip_udp_conns[conn]; \                                uip_process(UIP_UDP_TIMER); } while (0)/** * Periodic processing for a UDP connection identified by a pointer to * its structure. * * Same as uip_udp_periodic() but takes a pointer to the actual * uip_conn struct instead of an integer as its argument. This * function can be used to force periodic processing of a specific * connection. * * \param conn A pointer to the uip_udp_conn struct for the connection * to be processed. * * \hideinitializer */#define uip_udp_periodic_conn(conn) do { uip_udp_conn = conn; \                                         uip_process(UIP_UDP_TIMER); } while (0)#endif /* UIP_UDP *//** * The uIP packet buffer. * * The uip_buf array is used to hold incoming and outgoing * packets. The device driver should place incoming data into this * buffer. When sending data, the device driver should read the link * level headers and the TCP/IP headers from this buffer. The size of * the link level headers is configured by the UIP_LLH_LEN define. * * \note The application data need not be placed in this buffer, so * the device driver must read it from the place pointed to by the * uip_appdata pointer as illustrated by the following example: \code void devicedriver_send(void) {    hwsend(&uip_buf[0], UIP_LLH_LEN);    hwsend(&uip_buf[UIP_LLH_LEN], 40);    hwsend(uip_appdata, uip_len - 40 - UIP_LLH_LEN); } \endcode */extern u8_t uip_buf[UIP_BUFSIZE+2];/** @} *//*-----------------------------------------------------------------------------------*//* Functions that are used by the uIP application program. Opening and * closing connections, sending and receiving data, etc. is all * handled by the functions below.*//** * \defgroup uipappfunc uIP application functions * @{ * * Functions used by an application running of top of uIP. *//** * Start listening to the specified port. * * \note Since this function expects the port number in network byte * order, a conversion using HTONS() or htons() is necessary. * \code uip_listen(HTONS(80));  \endcode * * \param port A 16-bit port number in network byte order. */void uip_listen(u16_t port);/** * Stop listening to the specified port. * * \note Since this function expects the port number in network byte * order, a conversion using HTONS() or htons() is necessary. * \code uip_unlisten(HTONS(80));  \endcode

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
色噜噜狠狠成人网p站| 综合电影一区二区三区| 欧美高清性hdvideosex| 欧美在线你懂得| 欧洲精品一区二区| 欧美日韩免费在线视频| 在线亚洲一区二区| 欧美日韩激情一区二区| 欧美理论在线播放| 69久久99精品久久久久婷婷| 欧美日韩国产高清一区二区| 欧美电影在哪看比较好| 884aa四虎影成人精品一区| 在线电影一区二区三区| 欧美电影免费提供在线观看| 欧美mv和日韩mv国产网站| 精品久久久久一区二区国产| 久久久久久久久99精品| 欧美激情自拍偷拍| 国产精品免费看片| 夜夜嗨av一区二区三区四季av| 亚洲午夜羞羞片| 人人精品人人爱| 国内久久精品视频| 成人av在线电影| 欧美亚洲尤物久久| 91精品国产综合久久精品性色 | 精品视频一区三区九区| 在线一区二区三区四区五区| 欧美伦理电影网| 亚洲精品一线二线三线| 中文欧美字幕免费| 亚洲免费观看高清完整版在线观看 | 欧美日本国产一区| 日韩一级成人av| 久久久国产午夜精品| 综合久久久久综合| 日韩av高清在线观看| 国产一区二区在线视频| 91在线观看一区二区| 欧美在线观看视频一区二区三区| 欧美一区二区三区在线视频| 久久久国产精品午夜一区ai换脸| 亚洲欧洲日本在线| 日韩国产精品91| 成人一道本在线| 精品视频1区2区| 国产日产欧美一区| 亚洲bdsm女犯bdsm网站| 国产麻豆精品在线观看| 欧美亚洲国产怡红院影院| 日韩精品在线一区二区| 亚洲欧洲精品一区二区三区| 亚洲动漫第一页| 国产99久久久国产精品潘金网站| 在线亚洲欧美专区二区| 久久老女人爱爱| 亚洲福利一区二区三区| 成人激情文学综合网| 91精品国产综合久久蜜臀| 国产精品女主播av| 久久99国产精品久久99果冻传媒 | 国产精品网友自拍| 青青草伊人久久| 日本韩国一区二区三区| 久久久久久久久久久久久女国产乱| 亚洲一区在线观看免费观看电影高清 | 久久亚洲综合av| 亚洲777理论| 91丨九色丨国产丨porny| 精品第一国产综合精品aⅴ| 夜夜夜精品看看| 97久久人人超碰| 欧美不卡视频一区| 午夜亚洲福利老司机| 91在线视频网址| 亚洲国产精品成人综合| 国内久久精品视频| 欧美一区二区三区成人| 亚洲一区二区三区四区在线| 99久久久国产精品免费蜜臀| 亚洲精品一线二线三线| 蜜桃精品视频在线观看| 欧美性色欧美a在线播放| 国产精品美女视频| 国产精品1024| 亚洲精品一区二区在线观看| 日本美女一区二区| 欧美三级欧美一级| 亚洲蜜桃精久久久久久久| 成人深夜福利app| 欧美极品美女视频| 国产成人在线视频网址| 精品免费99久久| 久久精品噜噜噜成人av农村| 51午夜精品国产| 亚洲成人午夜影院| 欧美色男人天堂| 亚洲一区二区三区四区在线| 在线视频国内一区二区| 亚洲欧美日韩国产中文在线| 99精品久久免费看蜜臀剧情介绍| 欧美激情中文字幕一区二区| 懂色av一区二区夜夜嗨| 国产精品天干天干在观线| 成人黄页毛片网站| 国产精品久久久久7777按摩| 国产剧情在线观看一区二区| 亚洲精品一区二区三区99| 美女一区二区在线观看| 国产精品欧美极品| 成人av网址在线| 自拍偷拍欧美精品| 91久久国产最好的精华液| 亚洲综合视频网| 制服丝袜在线91| 九色综合国产一区二区三区| 亚洲精品一区二区三区蜜桃下载| 国产精品亚洲专一区二区三区| 国产亚洲欧洲一区高清在线观看| 国产成人精品午夜视频免费| 国产精品麻豆视频| 91麻豆免费观看| 亚洲一区二区三区小说| 91麻豆精品国产91久久久久久 | 91久久精品日日躁夜夜躁欧美| 亚洲一区二区三区国产| 91精品国产一区二区三区香蕉| 另类调教123区| 欧美激情一区二区三区全黄| 色婷婷综合久久久久中文一区二区| 亚洲愉拍自拍另类高清精品| 日韩欧美中文字幕公布| 国产成人精品一区二区三区四区| 亚洲欧美日韩国产综合| 91精品国产综合久久精品麻豆| 国产一区二区在线视频| 亚洲欧洲av色图| 555www色欧美视频| 国产宾馆实践打屁股91| 亚洲激情图片小说视频| 日韩三级.com| av电影在线观看完整版一区二区| 亚洲成av人片在线| 久久久美女毛片| 在线看国产一区| 国产乱人伦偷精品视频不卡| 一区二区欧美视频| 日韩午夜电影av| 97精品超碰一区二区三区| 日日噜噜夜夜狠狠视频欧美人| 久久久av毛片精品| 欧美午夜精品免费| 懂色av一区二区三区免费观看| 亚洲国产综合视频在线观看| xvideos.蜜桃一区二区| 色狠狠桃花综合| 国内成人精品2018免费看| 亚洲影院免费观看| 欧美国产视频在线| 欧美美女一区二区| 99久久精品国产观看| 蜜桃久久久久久久| 一区二区在线观看av| 久久伊人蜜桃av一区二区| 欧美日韩一区三区| av午夜精品一区二区三区| 久久99日本精品| 亚洲第一精品在线| 亚洲欧美色综合| 久久精品亚洲麻豆av一区二区| 欧美日韩亚洲综合一区二区三区| 国产99久久久久| 久久电影国产免费久久电影| 亚洲成人免费影院| 亚洲欧美日韩小说| 国产精品拍天天在线| 欧美变态tickling挠脚心| 欧美蜜桃一区二区三区| 91啪亚洲精品| 成人理论电影网| 国产精品中文字幕日韩精品| 日韩精品一区第一页| 亚洲精品国久久99热| 国产精品动漫网站| 久久久久久亚洲综合| 日韩欧美在线影院| 欧美视频一区二| 91欧美一区二区| 99久久久国产精品| 高清免费成人av| 国产精品综合一区二区三区| 欧美日韩国产一级二级| 91美女在线看| www.日韩精品| 不卡一二三区首页| 激情五月激情综合网| 激情丁香综合五月| 极品瑜伽女神91| 狠狠色丁香久久婷婷综合_中|