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

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

?? uip.h

?? 最新版FreeRTOS, 包擴多種開發平臺的移植
?? 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]; /*_RB_ __attribute__ ((aligned (4)));*/

/** @} */

/*-----------------------------------------------------------------------------------*/
/* 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一区二区三区免费野_久草精品视频
欧美日韩一区二区三区高清| 成人欧美一区二区三区| 国产婷婷精品av在线| 亚洲成人中文在线| 成人av午夜电影| 欧美精品三级日韩久久| 中文字幕av一区二区三区 | 欧美影视一区在线| 亚洲国产精品成人久久综合一区| 性做久久久久久免费观看| av一区二区三区四区| 国产视频一区二区在线| 久久9热精品视频| 欧美人与z0zoxxxx视频| 亚洲精品成人a在线观看| 国产成人精品www牛牛影视| 4438x成人网最大色成网站| 亚洲麻豆国产自偷在线| 91在线视频观看| 国产欧美一区二区三区网站| 久久99久久99小草精品免视看| 欧美日韩性生活| 一区二区在线观看视频在线观看| 成人一区二区视频| 国产偷国产偷精品高清尤物 | 欧美精品自拍偷拍| 亚洲v日本v欧美v久久精品| 91老师片黄在线观看| 一区视频在线播放| 97精品电影院| 中文字幕一区二区三区乱码在线| 国产成人av一区二区| 国产精品网站一区| www.日韩在线| 亚洲美女精品一区| 欧美午夜一区二区三区免费大片| 亚洲欧洲成人精品av97| 91原创在线视频| 亚洲一区二区三区自拍| 欧美少妇xxx| 日本欧美肥老太交大片| 91精品国产麻豆国产自产在线| 天堂在线亚洲视频| 日韩一区二区精品在线观看| 美日韩一区二区| 久久人人超碰精品| jvid福利写真一区二区三区| 国产精品福利一区| 欧洲精品一区二区| 日本欧美大码aⅴ在线播放| 精品国产乱码久久久久久久久| 国产成人免费在线| 亚洲日本va在线观看| 欧美性色aⅴ视频一区日韩精品| 一区二区成人在线| 日韩一级二级三级| 国产成人精品www牛牛影视| 亚洲桃色在线一区| 欧美日韩综合色| 狠狠色丁香久久婷婷综合_中| 久久精品一区二区三区av| 97精品视频在线观看自产线路二| 亚洲午夜电影在线观看| 91精选在线观看| 国产精品99久久久久久久vr | 午夜视黄欧洲亚洲| 久久久青草青青国产亚洲免观| 国产精品一区三区| 亚洲va欧美va人人爽| 欧美精品一区视频| 在线日韩国产精品| 国产九九视频一区二区三区| 亚洲日本va在线观看| 日韩视频123| 成人精品国产福利| 美女尤物国产一区| 中文字幕在线视频一区| 精品1区2区3区| 懂色一区二区三区免费观看| 亚洲成人免费影院| 亚洲欧洲日韩综合一区二区| 欧美电影在哪看比较好| 成人深夜在线观看| 麻豆成人av在线| 最新久久zyz资源站| 精品国产乱码久久久久久闺蜜| 色综合久久中文字幕| 国产精品一区不卡| 日本女优在线视频一区二区| 亚洲三级电影全部在线观看高清| 日韩免费视频一区二区| 在线一区二区视频| 99视频精品全部免费在线| 韩国v欧美v日本v亚洲v| 日韩成人免费在线| 一区二区成人在线视频 | 欧美精品一区二区三| 欧美视频一区二| 91在线精品一区二区三区| 国产在线视频不卡二| 免费在线看成人av| 亚洲成年人网站在线观看| 亚洲欧美日韩小说| 亚洲欧美偷拍卡通变态| 国产精品国产自产拍在线| 欧美高清在线精品一区| 久久久美女毛片| 精品欧美乱码久久久久久1区2区| 欧美精品日韩一本| 欧美日精品一区视频| 91麻豆成人久久精品二区三区| 不卡的看片网站| 成年人国产精品| 91影视在线播放| 99精品欧美一区二区三区综合在线| 国产99一区视频免费| 成人国产精品免费观看| 波多野结衣亚洲一区| 99麻豆久久久国产精品免费| 东方aⅴ免费观看久久av| 国产精品一区二区久久不卡 | 久久九九国产精品| 国产日韩欧美制服另类| 日本一区二区三区免费乱视频| 国产女主播在线一区二区| 国产精品久久久久久久浪潮网站| 国产精品婷婷午夜在线观看| 亚洲色图欧洲色图| 亚洲午夜电影网| 天使萌一区二区三区免费观看| 美国毛片一区二区三区| 国产精品一二二区| 99久久久精品| 欧美日韩在线三级| 日韩精品一区二区三区视频 | 国产麻豆成人传媒免费观看| 国产一区二区三区视频在线播放| 国产一区二区不卡老阿姨| 国产xxx精品视频大全| 色综合久久综合网欧美综合网| 在线观看国产91| 日韩免费看网站| 国产精品美女久久久久高潮| 亚洲激情五月婷婷| 久久99久国产精品黄毛片色诱| 成人免费观看视频| 欧美色窝79yyyycom| 精品国产凹凸成av人导航| 国产精品女人毛片| 肉丝袜脚交视频一区二区| 久久se这里有精品| 色琪琪一区二区三区亚洲区| 欧美一级日韩一级| 中文字幕一区二区在线播放| 亚洲1区2区3区视频| 国产福利一区二区三区视频在线| 91捆绑美女网站| 26uuu国产日韩综合| 亚洲精品视频免费看| 老司机精品视频导航| 99精品欧美一区二区蜜桃免费| 欧美精品久久一区二区三区| 国产免费观看久久| 琪琪久久久久日韩精品| 色素色在线综合| 国产日本欧洲亚洲| 日本中文字幕不卡| 色婷婷精品大在线视频| 国产欧美日韩精品a在线观看| 亚洲成人av电影| 99久久99久久精品免费看蜜桃| 精品久久久影院| 亚洲午夜精品17c| 91丨九色丨蝌蚪富婆spa| 久久午夜色播影院免费高清 | 欧美精品精品一区| 中文字幕乱码日本亚洲一区二区 | 狠狠色狠狠色综合| 91精品国产综合久久香蕉麻豆| 亚洲视频一二三| 成人一级片在线观看| 亚洲精品一区在线观看| 日韩av一级电影| 欧美日韩日日夜夜| 亚洲精品v日韩精品| 91丝袜国产在线播放| 国产精品美女久久福利网站| 国产成人av福利| 久久久久久黄色| 国产精品一区二区三区四区| 欧美一级黄色大片| 日韩电影在线一区二区| 欧美日韩专区在线| 亚洲国产视频直播| 在线欧美小视频| 亚洲一区二区综合| 欧美视频中文一区二区三区在线观看| 中文字幕欧美一区| 91偷拍与自偷拍精品| 亚洲麻豆国产自偷在线|