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

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

?? uip.h

?? avr版本的uip(一個超小型的TCPIP棧,支持tcpudparpicmp.
?? 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.1 2004/05/09 00:24:47 Louis 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一区二区三区免费野_久草精品视频
亚洲成人先锋电影| 欧美激情一区二区三区不卡| 欧美一卡2卡3卡4卡| 玉米视频成人免费看| 色哟哟精品一区| 综合激情成人伊人| 99久久久无码国产精品| 亚洲女与黑人做爰| 欧美日韩一区三区四区| 日韩和欧美一区二区三区| 欧美人xxxx| 狠狠色丁香久久婷婷综合丁香| 久久亚洲二区三区| 成人av电影免费在线播放| 中文字幕一区二区三中文字幕| 在线视频一区二区免费| 肉色丝袜一区二区| 久久亚洲春色中文字幕久久久| 99久久婷婷国产| 性做久久久久久免费观看| 精品国产123| 91免费版pro下载短视频| 五月婷婷激情综合| 国产网站一区二区三区| 在线观看国产日韩| 国内精品久久久久影院色| 亚洲免费在线播放| 日韩精品中文字幕在线一区| 成人av手机在线观看| 欧美a一区二区| 日韩美女视频一区| 精品国产乱码久久久久久1区2区| 成人a级免费电影| 无吗不卡中文字幕| 久久色成人在线| 欧美日韩精品一区二区三区蜜桃| 精品写真视频在线观看| 国产精品国模大尺度视频| 欧美日韩精品电影| 国产在线不卡视频| 亚洲精品久久久蜜桃| 日韩欧美一二区| 91小宝寻花一区二区三区| 日本一不卡视频| 欧美一级日韩一级| 一本色道久久综合亚洲精品按摩| 日本免费新一区视频| 国产精品视频在线看| 欧美日韩免费在线视频| 国产乱码字幕精品高清av| 亚洲美女视频一区| 国产亚洲污的网站| 91精品婷婷国产综合久久竹菊| 粉嫩高潮美女一区二区三区| 天天影视色香欲综合网老头| 中文成人综合网| 7777精品伊人久久久大香线蕉的| 国产成人在线免费观看| 亚州成人在线电影| 国产亚洲精品bt天堂精选| 4438x亚洲最大成人网| 99精品热视频| 国精产品一区一区三区mba视频| 一区二区三区免费| 日本一区二区三区电影| 日韩欧美国产麻豆| 欧美日韩国产一区| 色婷婷综合久久久久中文| 国产成人免费视频一区| 久久se精品一区二区| 亚洲国产视频一区| 综合色中文字幕| 日韩一卡二卡三卡四卡| 欧美精品99久久久**| 在线中文字幕不卡| 91视频在线看| 成人精品免费视频| 国内成+人亚洲+欧美+综合在线| 日韩国产欧美在线视频| 亚洲一区二区三区精品在线| 成人免费一区二区三区视频| 亚洲日本欧美天堂| 国产欧美日韩视频一区二区| 欧美久久免费观看| 欧美日韩国产高清一区二区| 在线观看视频一区二区| 99精品热视频| 亚洲成av人片在www色猫咪| 亚洲福利视频导航| 中文字幕亚洲欧美在线不卡| 粉嫩高潮美女一区二区三区| 久久久亚洲午夜电影| 精东粉嫩av免费一区二区三区| 91麻豆精品国产91久久久久久久久 | 亚洲欧美怡红院| 粉嫩嫩av羞羞动漫久久久| 久久久综合视频| 国产毛片精品视频| 国产精品人人做人人爽人人添| 床上的激情91.| 中文子幕无线码一区tr| 成人黄色a**站在线观看| 国产精品午夜在线观看| 91片在线免费观看| 亚洲色图制服诱惑| 91视视频在线观看入口直接观看www | 国产乱码精品一区二区三区av| 精品少妇一区二区三区视频免付费| 日本伊人午夜精品| 久久久久久黄色| 色香蕉久久蜜桃| 香蕉久久一区二区不卡无毒影院| 欧美一区二区三区爱爱| 国产在线观看免费一区| 亚洲人妖av一区二区| 欧美精三区欧美精三区| 看片的网站亚洲| 精品国产乱码久久久久久1区2区| 99国产麻豆精品| 日韩中文字幕麻豆| 国产无一区二区| 欧美视频第二页| 韩国欧美一区二区| 亚洲精品第一国产综合野| 欧美老肥妇做.爰bbww视频| 国产在线精品一区二区夜色| 中文字幕免费不卡| 欧美精品第1页| 成人免费高清在线| 亚洲午夜久久久久久久久电影院| 欧美二区乱c少妇| 成人视屏免费看| 日韩成人一级大片| 136国产福利精品导航| 欧美一区二区视频在线观看| 高清shemale亚洲人妖| 午夜一区二区三区视频| 国产精品无码永久免费888| 日韩一区二区三区三四区视频在线观看| 丁香激情综合国产| 美美哒免费高清在线观看视频一区二区 | 94-欧美-setu| 九九精品一区二区| 亚洲一区二区三区精品在线| 久久精品一区二区三区四区| 欧美三级视频在线播放| 成人黄色免费短视频| 另类小说综合欧美亚洲| 欧美经典一区二区| 日韩精品专区在线影院重磅| 国产精品一级片| 捆绑变态av一区二区三区| 亚洲大型综合色站| 亚洲日本电影在线| 欧美国产精品专区| 久久尤物电影视频在线观看| 欧美日韩极品在线观看一区| 99精品热视频| 成人黄色电影在线 | 韩国v欧美v亚洲v日本v| 青青草97国产精品免费观看无弹窗版| 亚洲猫色日本管| 中文字幕日韩av资源站| 国产精品福利一区二区| 国产精品久久久久毛片软件| 国产无一区二区| 久久久不卡影院| 5858s免费视频成人| 欧美片网站yy| 欧美在线观看18| 欧洲国内综合视频| 91精彩视频在线| 99re热视频精品| 色成人在线视频| 在线视频综合导航| 欧美精品乱码久久久久久按摩| 欧美日本在线视频| 日韩一区二区三区免费观看| 欧美一区二区黄| 精品国产三级a在线观看| 欧美一二三区精品| 欧美高清激情brazzers| 在线成人小视频| 欧美一级片在线看| 国产亚洲欧美在线| 亚洲男人天堂av| 一区二区三区欧美| 婷婷激情综合网| 久久99久久99精品免视看婷婷| 九九视频精品免费| av资源网一区| 欧美视频一区在线| www国产精品av| 一区在线观看视频| 亚洲日本va午夜在线电影| 一二三四社区欧美黄| 卡一卡二国产精品| av电影天堂一区二区在线| 欧美另类videos死尸| 久久久久久久久伊人|