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

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? 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

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产在线精品一区二区| 亚洲欧美自拍偷拍色图| 日本成人在线网站| 欧美人妇做爰xxxⅹ性高电影| 亚洲国产一区二区三区| 欧美精品在欧美一区二区少妇| 亚洲国产成人av好男人在线观看| 欧美伊人久久久久久午夜久久久久| 午夜久久电影网| 日韩一区二区三区电影| 国产乱码精品一区二区三区忘忧草 | 精品国产制服丝袜高跟| 国产精品1区二区.| 亚洲欧美国产毛片在线| 欧美日韩视频一区二区| 日韩精品视频网| 久久久99免费| 91在线精品一区二区三区| 亚洲成人动漫精品| 久久影视一区二区| 色综合网站在线| 日本不卡免费在线视频| 欧美极品另类videosde| 在线视频中文字幕一区二区| 美女www一区二区| 中文字幕制服丝袜成人av | 亚洲视频1区2区| 69成人精品免费视频| 国产精品一区二区久久精品爱涩| 免费成人你懂的| 欧美激情综合网| 欧美美女直播网站| 成人午夜电影小说| 天堂va蜜桃一区二区三区 | 一区二区三区在线高清| 精品免费一区二区三区| 色悠悠久久综合| 狠狠色丁香婷婷综合| 一区二区三区欧美视频| 国产亚洲精品7777| 欧美久久久久免费| 白白色亚洲国产精品| 久久精品国产99久久6| 一区二区三区四区国产精品| 2021久久国产精品不只是精品| 欧美性受xxxx黑人xyx性爽| 国产河南妇女毛片精品久久久| 日韩中文欧美在线| 亚洲精品国产精品乱码不99| 久久久综合网站| 91精品久久久久久蜜臀| 色婷婷一区二区| 白白色亚洲国产精品| 国产成人亚洲精品狼色在线 | 国产一区二区三区精品欧美日韩一区二区三区 | 久草精品在线观看| 性做久久久久久免费观看欧美| 国产精品久久久久一区| 久久久精品蜜桃| 日韩精品中文字幕一区| 91精品蜜臀在线一区尤物| 欧美美女视频在线观看| 在线观看一区二区视频| 91在线国产观看| av在线不卡免费看| 成人一二三区视频| 高清在线成人网| 国产麻豆成人精品| 国精产品一区一区三区mba桃花 | 亚洲成人免费av| 亚洲制服丝袜av| 亚洲一区二区三区视频在线| 亚洲激情五月婷婷| 亚洲综合一区在线| 亚洲综合免费观看高清完整版| 亚洲三级视频在线观看| 亚洲美女一区二区三区| 亚洲激情一二三区| 一区二区不卡在线播放 | 一区二区三区欧美激情| 中文字幕一区三区| 亚洲欧美日韩精品久久久久| 自拍偷拍国产精品| 亚洲激情在线激情| 99国产精品久久久久久久久久久| 成人激情校园春色| 麻豆91免费观看| 亚洲精品在线观看网站| 欧美一级高清大全免费观看| 欧美一级日韩不卡播放免费| 欧美一区二区免费观在线| 欧美成人激情免费网| 亚洲精品一线二线三线无人区| 久久久久久久久一| 国产女主播视频一区二区| 中文字幕一区二区日韩精品绯色| 亚洲丝袜制服诱惑| 亚洲va欧美va国产va天堂影院| 婷婷一区二区三区| 激情文学综合网| 成人黄色免费短视频| 在线精品观看国产| 欧美电影免费观看高清完整版在 | 日韩一区二区免费在线电影| 久久久精品黄色| 亚洲精品福利视频网站| 日韩高清中文字幕一区| 国产精品资源在线看| 色婷婷亚洲综合| 日韩欧美电影一区| 亚洲欧洲日产国码二区| 亚欧色一区w666天堂| 国产精品 欧美精品| 在线视频亚洲一区| 久久综合给合久久狠狠狠97色69| 国产精品成人一区二区艾草| 青青草精品视频| 国产99精品国产| 欧美亚洲自拍偷拍| 欧美精品一区二区在线观看| 18成人在线视频| 免费人成在线不卡| aaa国产一区| 有码一区二区三区| 久久精品久久久精品美女| 成人免费视频国产在线观看| 在线综合+亚洲+欧美中文字幕| 中文文精品字幕一区二区| 亚洲一区二区三区四区五区黄| 国产一区二区三区电影在线观看| 色综合中文综合网| 另类小说一区二区三区| 色婷婷久久综合| 国产欧美一区二区三区沐欲| 日韩精品乱码av一区二区| 99久久伊人久久99| 精品少妇一区二区三区在线播放| 一区二区三区久久| 粉嫩在线一区二区三区视频| 91麻豆精品国产自产在线观看一区 | av一区二区三区| 精品日韩欧美在线| 视频一区二区三区中文字幕| 99久久99精品久久久久久| 久久蜜桃一区二区| 免费一区二区视频| 欧美日韩精品是欧美日韩精品| 国产精品私人影院| 国精产品一区一区三区mba桃花| 在线综合视频播放| 同产精品九九九| 色婷婷综合久色| 国产精品538一区二区在线| 欧美一区二区视频在线观看| 亚洲一区二区三区四区在线| www.成人网.com| 中文字幕巨乱亚洲| 国产一区二区不卡在线| 日韩欧美的一区二区| 美女一区二区视频| 欧美一区二区三区色| 午夜亚洲国产au精品一区二区| 欧美体内she精高潮| 亚洲国产一区在线观看| 欧美少妇bbb| 天天av天天翘天天综合网| 欧美熟乱第一页| 亚洲成a人片在线观看中文| 欧美唯美清纯偷拍| 天堂久久久久va久久久久| 欧美一区二区在线播放| 久久国产精品99久久人人澡| 欧美一区二区国产| 久久国产精品免费| 国产午夜亚洲精品不卡| 风间由美一区二区av101 | 黄色日韩三级电影| 久久综合给合久久狠狠狠97色69| 精品亚洲免费视频| 国产欧美一区二区精品性| 成人免费毛片app| 最新欧美精品一区二区三区| 色婷婷香蕉在线一区二区| 婷婷国产在线综合| 欧美mv日韩mv国产网站app| 国产又黄又大久久| 国产精品久久久久一区| 一本色道亚洲精品aⅴ| 亚洲国产精品影院| 欧美电视剧免费全集观看| 国产a久久麻豆| 一区二区三区精品视频在线| 欧美片在线播放| 国产尤物一区二区在线| 亚洲欧美日韩电影| 日韩一区二区三区免费看| 成人午夜看片网址| 亚洲国产综合91精品麻豆| 久久天堂av综合合色蜜桃网| 97久久精品人人爽人人爽蜜臀|