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

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

?? httpd.lst

?? 58enc28j06protuesuip09.rar
?? LST
?? 第 1 頁 / 共 2 頁
字號(hào):
C51 COMPILER V8.16   HTTPD                                                                 03/16/2009 23:18:13 PAGE 1   


C51 COMPILER V8.16, COMPILATION OF MODULE HTTPD
OBJECT MODULE PLACED IN .\debug\httpd.obj
COMPILER INVOKED BY: C:\Keil\C51\BIN\C51.EXE httpd.c LARGE BROWSE DEBUG OBJECTEXTEND PRINT(.\debug\httpd.lst) OBJECT(.\d
                    -ebug\httpd.obj)

line level    source

   1          /**
   2           * \addtogroup exampleapps
   3           * @{
   4           */
   5          
   6          /**
   7           * \defgroup httpd Web server
   8           * @{
   9           *
  10           * The uIP web server is a very simplistic implementation of an HTTP
  11           * server. It can serve web pages and files from a read-only ROM
  12           * filesystem, and provides a very small scripting language.
  13           *
  14           * The script language is very simple and works as follows. Each
  15           * script line starts with a command character, either "i", "t", "c",
  16           * "#" or ".".  The "i" command tells the script interpreter to
  17           * "include" a file from the virtual file system and output it to the
  18           * web browser. The "t" command should be followed by a line of text
  19           * that is to be output to the browser. The "c" command is used to
  20           * call one of the C functions from the httpd-cgi.c file. A line that
  21           * starts with a "#" is ignored (i.e., the "#" denotes a comment), and
  22           * the "." denotes the last script line.
  23           *
  24           * The script that produces the file statistics page looks somewhat
  25           * like this:
  26           *
  27           \code
  28          i /header.html
  29          t <h1>File statistics</h1><br><table width="100%">
  30          t <tr><td><a href="/index.html">/index.html</a></td><td>
  31          c a /index.html
  32          t </td></tr> <tr><td><a href="/cgi/files">/cgi/files</a></td><td>
  33          c a /cgi/files
  34          t </td></tr> <tr><td><a href="/cgi/tcp">/cgi/tcp</a></td><td>
  35          c a /cgi/tcp
  36          t </td></tr> <tr><td><a href="/404.html">/404.html</a></td><td>
  37          c a /404.html
  38          t </td></tr></table>
  39          i /footer.plain
  40          .
  41           \endcode
  42           *
  43           */
  44          
  45          
  46          /**
  47           * \file
  48           * HTTP server.
  49           * \author Adam Dunkels <adam@dunkels.com>
  50           */
  51          
  52          /*
  53           * Copyright (c) 2001, Adam Dunkels.
  54           * All rights reserved. 
C51 COMPILER V8.16   HTTPD                                                                 03/16/2009 23:18:13 PAGE 2   

  55           *
  56           * Redistribution and use in source and binary forms, with or without 
  57           * modification, are permitted provided that the following conditions 
  58           * are met: 
  59           * 1. Redistributions of source code must retain the above copyright 
  60           *    notice, this list of conditions and the following disclaimer. 
  61           * 2. Redistributions in binary form must reproduce the above copyright 
  62           *    notice, this list of conditions and the following disclaimer in the 
  63           *    documentation and/or other materials provided with the distribution. 
  64           * 3. The name of the author may not be used to endorse or promote
  65           *    products derived from this software without specific prior
  66           *    written permission.  
  67           *
  68           * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS
  69           * OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
  70           * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  71           * ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY
  72           * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  73           * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
  74           * GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
  75           * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
  76           * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
  77           * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
  78           * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.  
  79           *
  80           * This file is part of the uIP TCP/IP stack.
  81           *
  82           * $Id: httpd.c,v 1.28.2.6 2003/10/07 13:22:27 adam Exp $
  83           *
  84           */
  85          
  86          
  87          #include "uip.h"
  88          #include "httpd.h"
  89          #include "fs.h"
  90          #include "fsdata.h"
  91          #include "cgi.h"
  92          
  93          #define NULL (void *)0
  94          
  95          /* The HTTP server states: */
  96          #define HTTP_NOGET        0
  97          #define HTTP_FILE         1
  98          #define HTTP_TEXT         2
  99          #define HTTP_FUNC         3
 100          #define HTTP_END          4
 101          
 102          #ifdef DEBUG
              #include <stdio.h>
              #define PRINT(x) printf("%s", x)
              #define PRINTLN(x) printf("%s\n", x)
              #else /* DEBUG */
 107          #define PRINT(x)
 108          #define PRINTLN(x)
 109          #endif /* DEBUG */
 110          
 111          struct httpd_state *hs;
 112          
 113          //extern const struct fsdata_file file_index_html;
 114          //extern const struct fsdata_file file_404_html;
 115          
 116          static void next_scriptline(void);
C51 COMPILER V8.16   HTTPD                                                                 03/16/2009 23:18:13 PAGE 3   

 117          static void next_scriptstate(void);
 118          
 119          #define ISO_G        0x47
 120          #define ISO_E        0x45
 121          #define ISO_T        0x54
 122          #define ISO_slash    0x2f    
 123          #define ISO_c        0x63
 124          #define ISO_g        0x67
 125          #define ISO_i        0x69
 126          #define ISO_space    0x20
 127          #define ISO_nl       0x0a
 128          #define ISO_cr       0x0d
 129          #define ISO_a        0x61
 130          #define ISO_t        0x74
 131          #define ISO_hash     0x23
 132          #define ISO_period   0x2e
 133          
 134          
 135          /*-----------------------------------------------------------------------------------*/
 136          /**
 137           * Initialize the web server.
 138           *
 139           * Starts to listen for incoming connection requests on TCP port 80.
 140           */
 141          /*-----------------------------------------------------------------------------------*/
 142          void
 143          httpd_init(void)
 144          {
 145   1        fs_init();
 146   1        
 147   1        /* Listen to port 80. */
 148   1        uip_listen(HTONS(80));
 149   1      }
 150          /*-----------------------------------------------------------------------------------*/
 151          void
 152          httpd_appcall(void)
 153          {
 154   1        struct fs_file fsfile;  
 155   1      
 156   1        u8_t i;
 157   1      
 158   1        switch(uip_conn->lport) {
 159   2          /* This is the web server: */
 160   2        case HTONS(80):
 161   2          /* Pick out the application state from the uip_conn structure. */
 162   2          hs = (struct httpd_state *)(uip_conn->appstate);
 163   2      
 164   2          /* We use the uip_ test functions to deduce why we were
 165   2             called. If uip_connected() is non-zero, we were called
 166   2             because a remote host has connected to us. If
 167   2             uip_newdata() is non-zero, we were called because the
 168   2             remote host has sent us new data, and if uip_acked() is
 169   2             non-zero, the remote host has acknowledged the data we
 170   2             previously sent to it. */
 171   2          if(uip_connected()) {
 172   3            /* Since we have just been connected with the remote host, we
 173   3               reset the state for this connection. The ->count variable
 174   3               contains the amount of data that is yet to be sent to the
 175   3               remote host, and the ->state is set to HTTP_NOGET to signal
 176   3               that we haven't received any HTTP GET request for this
 177   3               connection yet. */
 178   3            hs->state = HTTP_NOGET;
C51 COMPILER V8.16   HTTPD                                                                 03/16/2009 23:18:13 PAGE 4   

 179   3            hs->count = 0;
 180   3            return;
 181   3      
 182   3          } else if(uip_poll()) {
 183   3            /* If we are polled ten times, we abort the connection. This is
 184   3               because we don't want connections lingering indefinately in
 185   3               the system. */
 186   3            if(hs->count++ >= 10) {
 187   4              uip_abort();
 188   4            }

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號(hào) Ctrl + =
減小字號(hào) Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
亚洲国产日韩一区二区| 久久久av毛片精品| 在线视频你懂得一区| 国产精品一品视频| 国产成人免费视频精品含羞草妖精| 七七婷婷婷婷精品国产| 日韩av一区二区在线影视| 亚洲高清免费在线| 视频一区在线播放| 蜜桃视频在线观看一区二区| 日本亚洲天堂网| 蜜臀av性久久久久蜜臀aⅴ | 国产老妇另类xxxxx| 国内外成人在线| 粉嫩aⅴ一区二区三区四区| 国产999精品久久久久久| 成人动漫在线一区| 欧美午夜精品理论片a级按摩| 欧美电影一区二区三区| 日韩小视频在线观看专区| 亚洲精品一区二区三区99| 国产三级欧美三级日产三级99| 国产精品久久久一本精品| 亚洲精品成a人| 日本伊人午夜精品| 精品一区在线看| 91丨九色丨蝌蚪丨老版| 欧美美女激情18p| 欧美极品少妇xxxxⅹ高跟鞋 | 国产一区二区精品久久99| 成人激情黄色小说| 欧美美女喷水视频| 中文欧美字幕免费| 日韩精品一二三四| 不卡视频免费播放| 制服丝袜亚洲播放| 中文成人综合网| 麻豆传媒一区二区三区| av激情成人网| 精品欧美黑人一区二区三区| 中文字幕在线一区| 久久99热这里只有精品| 色综合天天综合狠狠| 精品国产麻豆免费人成网站| 亚洲主播在线播放| 国产另类ts人妖一区二区| 欧美老人xxxx18| 亚洲三级在线看| 国产一区二区三区美女| 7777精品伊人久久久大香线蕉最新版 | 精品日韩成人av| 一区二区中文视频| 精品一区在线看| 欧美日韩国产123区| 亚洲欧美综合色| 国产主播一区二区| 欧美一级淫片007| 香蕉影视欧美成人| 一本大道久久精品懂色aⅴ| 久久久影视传媒| 国内精品国产三级国产a久久| 在线不卡一区二区| 亚洲成人久久影院| 欧美亚洲国产一区二区三区va| ●精品国产综合乱码久久久久| 国产精品资源在线看| 精品国产免费一区二区三区四区| 视频一区视频二区中文| 91国偷自产一区二区三区成为亚洲经典| 国产女人18毛片水真多成人如厕 | 亚洲成人tv网| 欧美色老头old∨ideo| 亚洲男同1069视频| www.欧美色图| 亚洲精品欧美专区| 91激情在线视频| 一区二区三区不卡在线观看 | 日韩电影免费在线看| 欧美丰满少妇xxxbbb| 日韩有码一区二区三区| 5566中文字幕一区二区电影| 日韩 欧美一区二区三区| 欧美电影一区二区| 国产在线精品一区在线观看麻豆| 欧美videos中文字幕| 99精品视频一区二区| 中文字幕一区二区不卡| 91色九色蝌蚪| 亚洲高清久久久| 日韩欧美成人激情| 国产99久久久国产精品潘金网站| 中文字幕一区二区三区蜜月| 一本高清dvd不卡在线观看| 午夜天堂影视香蕉久久| 欧美日本国产一区| 国产激情91久久精品导航| 亚洲欧洲日本在线| 欧美日产国产精品| 捆绑变态av一区二区三区 | 国产精品66部| 亚洲桃色在线一区| 欧美日韩在线不卡| 国产精品1区二区.| 一区二区三区在线视频免费观看| 在线播放一区二区三区| 国产99久久久国产精品潘金 | 欧美日韩国产色站一区二区三区| 日韩精品每日更新| 欧美韩国日本综合| 91.com在线观看| 成人avav在线| 日韩高清在线一区| 欧美精品一区二区在线观看| 色久优优欧美色久优优| 蜜桃av一区二区| 亚洲视频一区二区在线| 日韩视频123| 在线欧美一区二区| 国产99一区视频免费| 奇米影视一区二区三区| 亚洲欧美欧美一区二区三区| 欧美精品一区二区精品网| 91国偷自产一区二区开放时间 | 国产精品99久久久久久似苏梦涵 | 岛国av在线一区| 爽爽淫人综合网网站| 亚洲少妇30p| 久久久久国产精品人| 欧美日韩高清影院| 一本高清dvd不卡在线观看| 国产高清亚洲一区| 美女国产一区二区三区| 亚洲大片免费看| 樱花草国产18久久久久| 国产精品久久久久国产精品日日| 日韩欧美国产三级| 欧美肥妇毛茸茸| 欧美日韩三级视频| 欧美少妇bbb| 欧美一级久久久| 欧美视频中文字幕| 色婷婷激情综合| 91浏览器入口在线观看| 成人国产精品免费观看视频| 国产一区二区电影| 国产一区二区h| 韩国成人在线视频| 久久不见久久见免费视频7| 日韩福利视频导航| 图片区日韩欧美亚洲| 亚洲最大成人网4388xx| 亚洲精品国产a| 亚洲国产美国国产综合一区二区| 亚洲精品高清在线| 亚洲丶国产丶欧美一区二区三区| 一区二区免费在线播放| 亚洲一区中文在线| 午夜精品久久久久久久| 日韩精品一区第一页| 免费不卡在线视频| 麻豆成人av在线| 国产精品996| 91麻豆免费看| 欧美日韩一本到| 日韩免费高清av| 国产视频视频一区| 亚洲人妖av一区二区| 一区二区三区免费在线观看| 亚洲福中文字幕伊人影院| 日韩不卡在线观看日韩不卡视频| 久久国产日韩欧美精品| 国产精品一区二区在线观看网站| 成人ar影院免费观看视频| 99re成人精品视频| 精品视频在线免费观看| 欧美大片日本大片免费观看| 国产亚洲污的网站| 亚洲人被黑人高潮完整版| 三级欧美韩日大片在线看| 精品一区二区三区日韩| 97久久人人超碰| 欧美二区在线观看| 国产精品色婷婷| 无码av中文一区二区三区桃花岛| 精品系列免费在线观看| 91在线porny国产在线看| 91精品国产综合久久婷婷香蕉| 久久久精品免费免费| 一个色综合av| 国产一区二区日韩精品| 欧美性videosxxxxx| 精品国产污污免费网站入口 | 成人看片黄a免费看在线| 欧美日韩中文字幕一区二区| 久久久久久免费网| 一区二区三区欧美日| 丁香激情综合五月| 欧美久久久久中文字幕| 中文字幕免费观看一区| 男女男精品网站|