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

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

?? httpd.lst

?? 58enc28j06protuesuip09.rar
?? LST
?? 第 1 頁 / 共 2 頁
字號:
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            }

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
久久精品国产第一区二区三区| 一本久道久久综合中文字幕| 成人黄色免费短视频| 欧美三级中文字幕在线观看| 久久久亚洲欧洲日产国码αv| 一区二区三区四区在线免费观看| 久久电影网电视剧免费观看| 色噜噜狠狠成人网p站| 精品国产乱码久久久久久图片| 亚洲自拍偷拍网站| 成人avav影音| 日本一区二区在线不卡| 久久精品国产亚洲一区二区三区 | 免费在线观看成人| 99精品在线观看视频| 久久影视一区二区| 免费在线欧美视频| 在线电影国产精品| 亚洲国产精品影院| 色综合视频在线观看| 中文字幕一区在线| 国产精品456| 久久伊人中文字幕| 精品中文字幕一区二区| 91精选在线观看| 亚洲一区精品在线| 欧美性大战久久久| 一区二区三区成人在线视频| 一本久久a久久精品亚洲| 中文字幕在线观看不卡| 国产成人精品免费网站| 久久日一线二线三线suv| 久久精工是国产品牌吗| 日韩三级在线观看| 毛片基地黄久久久久久天堂| 欧美一区二区在线不卡| 日本伊人色综合网| 日韩亚洲欧美高清| 久久99国产精品久久99果冻传媒| 日韩欧美高清在线| 韩国av一区二区三区四区| 久久色.com| 成人激情综合网站| 亚洲欧洲性图库| 色婷婷精品大在线视频| 一区二区三区在线视频播放| 欧美中文字幕亚洲一区二区va在线| 亚洲免费资源在线播放| 欧美性猛交xxxxxx富婆| 秋霞av亚洲一区二区三| 日韩精品一区二区三区四区| 国模少妇一区二区三区| 国产精品视频一二| 色天使久久综合网天天| 日产欧产美韩系列久久99| 欧美一区二区不卡视频| 国产在线播精品第三| 欧美激情资源网| 一本大道久久a久久精二百| 亚洲成人自拍偷拍| 精品国产青草久久久久福利| 国产成人免费9x9x人网站视频| 国产精品久久久久久久久晋中| 色婷婷精品大视频在线蜜桃视频| 视频在线观看一区二区三区| 久久久久9999亚洲精品| 色综合天天综合在线视频| 日本成人超碰在线观看| 亚洲国产经典视频| 欧美视频三区在线播放| 九色|91porny| 亚洲精品va在线观看| 日韩欧美一卡二卡| av电影一区二区| 蜜臀av一级做a爰片久久| 国产精品免费看片| 91精品欧美福利在线观看| 国产东北露脸精品视频| 午夜精品影院在线观看| 欧美激情在线看| 欧美日本在线播放| 国产东北露脸精品视频| 日日欢夜夜爽一区| 中文字幕一区二| 精品剧情v国产在线观看在线| 色综合久久综合| 国产一区二区三区电影在线观看| 一区二区三区高清在线| 国产欧美日韩另类视频免费观看| 欧美色手机在线观看| 成人国产视频在线观看| 久色婷婷小香蕉久久| 亚洲观看高清完整版在线观看| 中文字幕第一页久久| 日韩免费在线观看| 欧美日韩一区高清| 91色视频在线| 福利电影一区二区三区| 精品写真视频在线观看| 性做久久久久久免费观看欧美| 自拍偷自拍亚洲精品播放| 中文字幕第一区| 国产丝袜欧美中文另类| 精品日韩欧美在线| 91精品国产综合久久精品性色| 色偷偷88欧美精品久久久| 成人黄色大片在线观看| 国产成人高清视频| 国产寡妇亲子伦一区二区| 国模冰冰炮一区二区| 精品亚洲免费视频| 国模少妇一区二区三区| 黑人巨大精品欧美黑白配亚洲| 蜜桃av噜噜一区| 男女男精品视频| 蜜臀av一区二区三区| 麻豆精品在线视频| 美腿丝袜亚洲一区| 久久99精品网久久| 国产精品99久久久久久宅男| 国产精品伊人色| 东方欧美亚洲色图在线| 国产suv一区二区三区88区| 国产成人aaaa| 豆国产96在线|亚洲| 成人精品高清在线| 91浏览器打开| 欧美日韩在线免费视频| 欧美日韩高清在线播放| 欧美一级日韩不卡播放免费| 日韩一级片网站| 久久久亚洲精品一区二区三区 | 欧美日韩激情一区| 欧美久久免费观看| 欧美精品一区二区三区在线 | 欧美一级搡bbbb搡bbbb| 精品久久人人做人人爱| 国产精品萝li| 亚洲黄色在线视频| 日韩在线观看一区二区| 久久99深爱久久99精品| 成人午夜在线免费| 91成人在线观看喷潮| 69p69国产精品| 久久久久久电影| 日韩美女久久久| 日韩成人av影视| 国产精品亚洲成人| 欧洲亚洲精品在线| 精品少妇一区二区三区| 中文字幕一区二区日韩精品绯色| 亚洲国产日韩综合久久精品| 国产一区二区三区四| k8久久久一区二区三区| 欧美日韩在线播放| 日本一区二区高清| 亚洲成人免费在线观看| 国产精品原创巨作av| 欧美性色综合网| 国产欧美一区二区精品秋霞影院| 一区二区三区在线高清| 久久精品国内一区二区三区| 91免费看片在线观看| 欧美精品一区二区久久婷婷| 亚洲男女毛片无遮挡| 国产九九视频一区二区三区| 欧美亚男人的天堂| 国产精品久久久久影院亚瑟| 天堂成人免费av电影一区| 成人免费毛片片v| 日韩三级高清在线| 一片黄亚洲嫩模| 国产不卡在线视频| 久久久.com| 三级成人在线视频| 在线观看日韩毛片| 国产亚洲女人久久久久毛片| 石原莉奈在线亚洲二区| 色哟哟在线观看一区二区三区| 2023国产一二三区日本精品2022| 亚洲午夜影视影院在线观看| 成人高清免费在线播放| 精品国产髙清在线看国产毛片| 亚洲国产精品麻豆| 91啦中文在线观看| 亚洲天堂2014| 99这里都是精品| 国产精品三级av| 国产精品一卡二卡| 精品国产污网站| 狠狠色综合播放一区二区| 欧美一区日韩一区| 免费看欧美美女黄的网站| 精品视频色一区| 五月激情六月综合| 欧亚一区二区三区| 亚洲综合小说图片| 欧美性受xxxx| 亚洲午夜三级在线| 精品视频1区2区3区|