亚洲欧美第一页_禁久久精品乱码_粉嫩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一区二区三区免费野_久草精品视频
国产精品青草综合久久久久99| 不卡影院免费观看| 亚洲欧美一区二区在线观看| 欧美高清www午色夜在线视频| 国产黄人亚洲片| 欧美视频日韩视频在线观看| 国产一区二区美女| 欧美不卡在线视频| 在线免费观看日韩欧美| 国产99精品国产| 国产经典欧美精品| 麻豆成人在线观看| 免费观看久久久4p| 欧美精品 日韩| 日韩福利视频导航| 亚洲午夜在线电影| 怡红院av一区二区三区| 91国产精品成人| 美女视频一区二区三区| 亚洲一卡二卡三卡四卡五卡| 亚洲免费成人av| 亚洲免费在线电影| 91视频xxxx| 亚洲国产精品成人综合| 日韩美女在线视频| 精品国偷自产国产一区| 久久99国产精品久久| 青草av.久久免费一区| 91在线观看地址| 99精品视频在线免费观看| 国产精品综合二区| 国产精品一区二区在线观看不卡 | 久久国产剧场电影| 精品久久久久久无| 国产亚洲欧美激情| 久久精品亚洲一区二区三区浴池| 精品一区二区三区免费观看| 另类人妖一区二区av| 九色综合狠狠综合久久| 国产日韩欧美综合在线| 日本韩国一区二区三区视频| 99re视频精品| 欧美人与z0zoxxxx视频| 欧美午夜在线一二页| 欧美精品 国产精品| 日韩欧美一卡二卡| 亚洲国产高清aⅴ视频| 亚洲综合色在线| 国产精品国产三级国产普通话蜜臀 | 在线不卡一区二区| 精品国产一区二区三区av性色 | 日本高清不卡一区| 欧美一区二区视频在线观看 | 国产一区在线不卡| 一本一道久久a久久精品综合蜜臀| 成人a区在线观看| 欧美午夜寂寞影院| 精品日韩一区二区| 亚洲九九爱视频| 欧美一级一区二区| 中文字幕不卡在线播放| 亚洲一级片在线观看| 国产精品久久网站| 香蕉加勒比综合久久| 亚洲视频在线一区二区| 亚洲黄色片在线观看| 91精品欧美一区二区三区综合在| 成人免费高清在线观看| 一区二区三区国产| 国内精品免费在线观看| 欧美日韩国产在线播放网站| 成人app网站| 成人精品国产福利| 91精品蜜臀在线一区尤物| 一区二区三区国产精华| 日本高清无吗v一区| 亚洲人成伊人成综合网小说| www.欧美日韩| 综合在线观看色| 在线观看网站黄不卡| 亚洲欧美激情小说另类| 色婷婷av一区二区三区gif| 国产精品久久久久精k8| 婷婷丁香激情综合| 欧美精品一级二级三级| 偷拍一区二区三区四区| 久久成人精品无人区| 日韩一区二区在线播放| 老司机免费视频一区二区| 欧美成人video| 亚洲素人一区二区| 欧美体内she精高潮| 性做久久久久久免费观看欧美| 欧美午夜精品久久久久久超碰| 亚洲国产精品久久久久婷婷884| 国产一区二区毛片| 欧美日本韩国一区| 国产精品伦理在线| 免费人成网站在线观看欧美高清| 风间由美一区二区三区在线观看| 亚洲国产精品成人综合| 91麻豆免费观看| 欧美激情一区二区三区不卡| 成人激情校园春色| 亚洲第一主播视频| xf在线a精品一区二区视频网站| 自拍偷拍欧美精品| 九九视频精品免费| 国产精品国产三级国产三级人妇 | 9191久久久久久久久久久| 久久国产精品无码网站| 中国av一区二区三区| 欧美在线高清视频| 国产精品福利一区二区三区| 日韩二区在线观看| 色狠狠av一区二区三区| 中文子幕无线码一区tr| 蜜桃一区二区三区四区| 欧美国产日韩一二三区| 欧美日韩中字一区| 国产黄色精品网站| 国产亚洲精品资源在线26u| 91片黄在线观看| 蜜臀久久99精品久久久久宅男| 国产精品美女久久久久久| 美女视频一区二区三区| 67194成人在线观看| 一区二区三区不卡视频在线观看| 日韩一区二区麻豆国产| 一本色道综合亚洲| 国产91在线看| 老司机精品视频线观看86| 亚洲国产另类av| 亚洲精品成人少妇| 色哦色哦哦色天天综合| 中文字幕人成不卡一区| 欧美一二三区在线| 在线视频国内自拍亚洲视频| 国产91精品久久久久久久网曝门| 日本一区二区三区视频视频| 欧美一区二区在线免费观看| 91福利视频久久久久| 99久久99久久精品国产片果冻| 毛片不卡一区二区| 久久九九国产精品| 成人精品高清在线| 国产成人自拍网| 国产精品久久久久久久久动漫| 久久美女艺术照精彩视频福利播放| 国产精品一二三四五| 精品综合久久久久久8888| 五月激情综合网| 国产日韩欧美精品综合| 精品国产一区二区三区久久影院 | 亚洲国产成人av好男人在线观看| 国产精品嫩草99a| 色哟哟国产精品| 91一区一区三区| 一本色道久久综合亚洲aⅴ蜜桃| 亚洲午夜久久久| 欧美成人r级一区二区三区| 日韩免费观看2025年上映的电影| 日韩亚洲欧美一区二区三区| 福利91精品一区二区三区| 亚洲最新在线观看| 亚洲亚洲人成综合网络| 日日摸夜夜添夜夜添精品视频| 日日夜夜精品视频天天综合网| 美女一区二区三区在线观看| 久久伊人中文字幕| 久久精品一二三| 欧美三区在线观看| 在线播放91灌醉迷j高跟美女 | 精品一区二区三区在线观看国产| 日韩av电影天堂| 国产成人三级在线观看| 亚洲天堂成人网| 日日骚欧美日韩| 国产一区二区三区视频在线播放| 亚洲欧美日韩国产综合| 91精品免费在线| 色先锋aa成人| 51午夜精品国产| 国产日产欧美一区二区视频| 亚洲日本中文字幕区| 亚洲成人av资源| 久久99久久久久久久久久久| 欧美成人国产一区二区| 欧美高清在线视频| 欧美一区二区三区视频在线观看| 91日韩在线专区| 韩国成人精品a∨在线观看| 一区二区在线免费观看| 日本vs亚洲vs韩国一区三区二区 | 国产成人久久精品77777最新版本| 99精品欧美一区二区三区综合在线| 欧洲精品一区二区| 精品伦理精品一区| 日韩丝袜情趣美女图片| 欧美激情综合网|