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

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

?? httpd.lst

?? 58enc28j06protuesuip09.rar
?? LST
?? 第 1 頁 / 共 2 頁
字號:
C51 COMPILER V8.15   HTTPD                                                                 08/11/2009 15:07:53 PAGE 1   


C51 COMPILER V8.15, 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.15   HTTPD                                                                 08/11/2009 15:07:53 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.15   HTTPD                                                                 08/11/2009 15:07:53 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.15   HTTPD                                                                 08/11/2009 15:07:53 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            }

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
99久久精品一区| 久久久久9999亚洲精品| 国产色91在线| 久久成人麻豆午夜电影| 欧美精品tushy高清| 一区二区三区在线视频观看| 成人在线一区二区三区| 欧美一级理论片| 日欧美一区二区| 欧美日韩综合色| 亚洲成人综合视频| 欧美视频一区二区| 亚洲高清免费一级二级三级| 亚洲国产激情av| 国产麻豆精品一区二区| 精品少妇一区二区三区| 肉肉av福利一精品导航| 337p亚洲精品色噜噜狠狠| 亚洲aaa精品| 久久亚洲免费视频| 不卡免费追剧大全电视剧网站| 国产精品色哟哟| 91久久免费观看| 狂野欧美性猛交blacked| 久久久亚洲午夜电影| 成人午夜激情视频| 亚洲国产日韩在线一区模特| 欧美一区二区三区视频| 日韩欧美中文字幕公布| 一区二区三区蜜桃网| 国产精品一二三区| 亚洲一区中文日韩| 26uuu久久综合| 欧美在线观看一区| 国产资源在线一区| 亚洲色图欧美在线| 精品久久久久久综合日本欧美| 岛国精品在线观看| 蜜臀av一区二区在线免费观看 | 亚洲一区二区三区四区在线观看| 5566中文字幕一区二区电影| 99久久免费精品| 美女视频黄a大片欧美| 日韩理论片网站| 久久久国产一区二区三区四区小说 | 欧美日韩黄色影视| 91片黄在线观看| 成人午夜视频福利| 国产在线播放一区| 成人av资源站| 国产精品99久久久久久似苏梦涵 | 国产一区在线观看麻豆| 五月综合激情婷婷六月色窝| 亚洲综合激情小说| 亚洲欧洲一区二区三区| 国产精品少妇自拍| 欧美韩国日本综合| 国产精品久久久久久久久动漫 | 美女一区二区久久| 五月天激情综合网| 日韩激情av在线| 日本成人在线一区| 国产一区二区精品久久99| 老司机午夜精品| 国产一区二区三区日韩| 国产高清精品网站| av成人老司机| 欧美日韩综合不卡| 日韩免费在线观看| 日韩一区二区麻豆国产| 久久久久久久久97黄色工厂| 中文字幕一区二区三区四区 | 日韩国产欧美在线视频| 久色婷婷小香蕉久久| 成人免费毛片片v| 欧美在线制服丝袜| 日韩欧美精品三级| 午夜日韩在线电影| 日本视频在线一区| 国产91在线看| 777奇米成人网| 中文字幕制服丝袜成人av| 日韩av午夜在线观看| 成人a级免费电影| 日韩欧美在线网站| 亚洲毛片av在线| 国产精品一区二区在线观看网站| 91美女片黄在线观看| 久久亚洲私人国产精品va媚药| 亚洲人被黑人高潮完整版| 精品综合免费视频观看| 91久久久免费一区二区| 亚洲国产精品t66y| 国产高清不卡二三区| 欧美精品乱码久久久久久按摩| 欧美男男青年gay1069videost | 首页亚洲欧美制服丝腿| 成人丝袜18视频在线观看| 精品国产乱码久久久久久夜甘婷婷 | 国产精品乱码一区二区三区软件 | ●精品国产综合乱码久久久久 | 麻豆精品在线观看| 欧美三级三级三级爽爽爽| 亚洲一区视频在线观看视频| 色综合中文综合网| 日韩国产欧美在线视频| 欧美中文字幕亚洲一区二区va在线| 国产精品电影一区二区三区| 成人性生交大片免费看中文网站| 久久免费的精品国产v∧| 国产一区二区伦理片| 国产精品美女久久久久aⅴ| 成人国产在线观看| 亚洲国产激情av| 日本精品裸体写真集在线观看 | 国产一区二区按摩在线观看| 26uuu欧美| 91成人网在线| 日本成人在线一区| 国产日本欧美一区二区| av综合在线播放| 午夜精品免费在线| 国产亚洲一区字幕| 精品写真视频在线观看| 日韩午夜电影在线观看| 国产精品一区2区| 亚洲资源中文字幕| 久久亚洲精品小早川怜子| 99久久精品国产网站| 天堂蜜桃91精品| 国产精品乱码久久久久久| 8x8x8国产精品| 成人免费视频国产在线观看| 亚洲成人久久影院| 亚洲视频电影在线| 久久久久久久久伊人| 欧美二区乱c少妇| 91丨国产丨九色丨pron| 国产99久久久国产精品| 免费视频一区二区| 亚洲国产你懂的| 亚洲欧美另类在线| 国产亚洲欧洲997久久综合| 日韩美一区二区三区| 精品视频1区2区| 色嗨嗨av一区二区三区| 成人永久aaa| 岛国av在线一区| 高清在线观看日韩| 免费人成精品欧美精品| 亚洲成人777| 亚洲已满18点击进入久久| 亚洲综合999| 亚洲一区二区影院| 日本亚洲电影天堂| 亚洲成av人**亚洲成av**| 国产精品午夜春色av| 中文字幕不卡三区| **欧美大码日韩| 亚洲国产裸拍裸体视频在线观看乱了| 亚洲免费观看高清完整版在线 | 欧美一区二区三区播放老司机| 欧美视频在线播放| 欧美一区二区在线不卡| 日韩精品中文字幕在线不卡尤物| 欧美绝品在线观看成人午夜影视| www.亚洲国产| 91黄色激情网站| 欧美精品丝袜久久久中文字幕| 日韩精品专区在线影院观看| 久久久一区二区三区捆绑**| 国产精品福利一区二区| 亚洲一卡二卡三卡四卡无卡久久| 丝袜美腿高跟呻吟高潮一区| 国产精品一区2区| 欧美专区亚洲专区| 日韩欧美一区二区视频| 亚洲色图一区二区| 久久99国产精品成人| va亚洲va日韩不卡在线观看| 91精品在线麻豆| 亚洲美女免费视频| 美国av一区二区| 欧美私人免费视频| 中文字幕不卡在线观看| 美女视频一区二区| 99精品1区2区| 亚洲精品在线一区二区| 日韩专区一卡二卡| 91麻豆国产精品久久| 久久综合给合久久狠狠狠97色69| 亚洲成人免费在线| 色网站国产精品| 亚洲日穴在线视频| 国产a区久久久| 日本一区二区在线不卡| 极品少妇xxxx精品少妇| 日韩一区二区免费在线电影| 香蕉加勒比综合久久| 色综合久久88色综合天天6|