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

? 歡迎來(lái)到蟲(chóng)蟲(chóng)下載站! | ?? 資源下載 ?? 資源專(zhuān)輯 ?? 關(guān)于我們
? 蟲(chóng)蟲(chóng)下載站

?? uip.h

?? avr版本的uip(一個(gè)超小型的TCPIP棧,支持tcpudparpicmp.
?? H
?? 第 1 頁(yè) / 共 3 頁(yè)
字號(hào):
/**
 * \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

?? 快捷鍵說(shuō)明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號(hào) Ctrl + =
減小字號(hào) Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
成人丝袜18视频在线观看| 久久综合久久99| 91黄色在线观看| 99久精品国产| 99re热视频这里只精品| 北岛玲一区二区三区四区| 丁香一区二区三区| jizz一区二区| 91黄视频在线| 欧美精选一区二区| 精品奇米国产一区二区三区| 日韩精品中文字幕在线一区| 日韩免费看的电影| 2014亚洲片线观看视频免费| 国产欧美日韩另类视频免费观看 | 亚洲精品美国一| 一区二区三区欧美激情| 亚洲午夜精品17c| 日日摸夜夜添夜夜添亚洲女人| 日本欧美一区二区在线观看| 久久精品国产网站| 国产成人一区在线| 99久久精品免费看| 欧美日韩一区二区三区在线| 欧美一区二区三区免费| 国产亚洲美州欧州综合国| 成人欧美一区二区三区小说| 午夜精品在线视频一区| 九九热在线视频观看这里只有精品 | 天堂成人国产精品一区| 麻豆免费精品视频| 国产成人av网站| 日本韩国欧美一区二区三区| 日韩视频一区二区| 国产精品视频九色porn| 亚洲成人激情社区| 国产在线一区二区综合免费视频| 成人免费视频网站在线观看| 欧美色倩网站大全免费| 久久这里只精品最新地址| 亚洲免费观看高清完整版在线观看熊| 日韩精品1区2区3区| 国产v综合v亚洲欧| 欧美系列亚洲系列| 久久免费看少妇高潮| 亚洲影院理伦片| 国产激情精品久久久第一区二区| 色菇凉天天综合网| 久久一区二区视频| 亚洲国产日韩综合久久精品| 国产一区二区三区久久悠悠色av| 色一情一乱一乱一91av| 日韩三级视频在线看| 一区二区三区在线看| 国内久久精品视频| 欧美日韩国产bt| 国产精品福利一区| 麻豆视频一区二区| 欧美三级中文字幕| 中文字幕成人av| 久久9热精品视频| 欧美三日本三级三级在线播放| 国产人伦精品一区二区| 视频一区视频二区中文字幕| av电影在线观看完整版一区二区| 欧美一区二区视频免费观看| 一区二区三区四区在线播放| 国产精品综合视频| 日韩三级伦理片妻子的秘密按摩| 亚洲视频资源在线| 国产精品香蕉一区二区三区| 91精品婷婷国产综合久久| 亚洲免费看黄网站| 成人av午夜影院| 欧美精品一区二区三区很污很色的 | 99久久精品免费看国产免费软件| 久久综合九色综合欧美亚洲| 日本在线不卡一区| 欧美欧美欧美欧美首页| 夜夜亚洲天天久久| 91亚洲精品久久久蜜桃| 国产亚洲欧洲一区高清在线观看| 美女免费视频一区| 欧美男人的天堂一二区| 一区二区在线电影| 成人精品视频网站| 中文字幕av资源一区| 国产精品一区二区免费不卡 | 在线电影欧美成精品| 一区二区三区日本| 欧美在线视频全部完| 一区二区三区 在线观看视频| a亚洲天堂av| 国产精品久久久久久久久图文区 | 91精品国产综合久久香蕉麻豆| 洋洋成人永久网站入口| 色婷婷av久久久久久久| 亚洲精品一卡二卡| 日本韩国欧美三级| 亚洲国产精品嫩草影院| 欧美日韩中字一区| 日产欧产美韩系列久久99| 日韩精品中文字幕在线一区| 精品在线观看视频| 久久久综合精品| 成人国产精品免费网站| 国产精品久久久久久久第一福利| 丁香婷婷综合激情五月色| 国产精品第五页| a级精品国产片在线观看| 亚洲人午夜精品天堂一二香蕉| 色综合久久中文综合久久牛| 亚洲综合久久av| 欧美精品自拍偷拍动漫精品| 日本欧美加勒比视频| 精品久久久久一区| 国产成人8x视频一区二区| 中文字幕在线一区二区三区| 色又黄又爽网站www久久| 一级精品视频在线观看宜春院| 在线播放中文一区| 精品亚洲成a人| 国产精品免费免费| 欧美色综合网站| 久久成人综合网| 国产精品全国免费观看高清| 91国偷自产一区二区使用方法| 香蕉影视欧美成人| 精品国产凹凸成av人网站| 国产成人av影院| 亚洲午夜在线电影| 欧美不卡视频一区| 成人午夜电影网站| 亚洲高清免费观看高清完整版在线观看| 在线播放视频一区| 国产精品自拍一区| 悠悠色在线精品| 欧美一级高清片| 成人ar影院免费观看视频| 亚洲图片自拍偷拍| 久久综合成人精品亚洲另类欧美 | 91视频国产观看| 五月天精品一区二区三区| 久久亚洲精精品中文字幕早川悠里 | 欧美视频中文字幕| 久草中文综合在线| 一个色妞综合视频在线观看| 精品国产免费一区二区三区四区| 播五月开心婷婷综合| 男女视频一区二区| 亚洲日本中文字幕区| 日韩免费高清av| 色欧美片视频在线观看| 极品美女销魂一区二区三区| 久久精品99久久久| 国产精品卡一卡二| 日韩一区二区精品| 色猫猫国产区一区二在线视频| 老司机午夜精品99久久| 亚洲免费伊人电影| 久久精品视频一区二区三区| 欧美日韩精品欧美日韩精品一综合| 国产精品性做久久久久久| 日韩和欧美的一区| 亚洲日本欧美天堂| 久久亚洲一区二区三区明星换脸| 欧美日韩国产精选| 91丝袜高跟美女视频| 国产成人亚洲精品青草天美| 日韩精品亚洲一区| 亚洲最色的网站| 中日韩av电影| www日韩大片| 91精品国产黑色紧身裤美女| 色偷偷成人一区二区三区91| 国产精品一区二区久久精品爱涩| 日韩中文字幕一区二区三区| 亚洲欧美日韩中文播放 | 亚洲一区二区中文在线| 国产精品毛片高清在线完整版| 日韩精品在线一区| 欧美日韩国产经典色站一区二区三区| 99精品国产91久久久久久| 精品在线观看视频| 麻豆久久久久久| 日韩av电影免费观看高清完整版 | 欧美高清激情brazzers| 91网站最新地址| 成人h版在线观看| 国内精品写真在线观看| 美女视频黄 久久| 日本视频在线一区| 日韩一区精品字幕| 香蕉成人啪国产精品视频综合网| 一区二区三区国产精品| 亚洲欧美综合另类在线卡通| 亚洲国产精品t66y| 国产精品美女视频| 国产精品久久久久婷婷| 中文字幕第一区|