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

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

?? httpd.lst

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

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號(hào) Ctrl + =
減小字號(hào) Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
久久国产麻豆精品| 亚洲啪啪综合av一区二区三区| 亚洲www啪成人一区二区麻豆| 色综合色综合色综合 | 国产馆精品极品| 精品捆绑美女sm三区| 久久精品72免费观看| 久久亚洲一区二区三区明星换脸 | 国产欧美精品区一区二区三区 | 首页国产欧美久久| 日韩一区二区免费电影| 国产高清精品久久久久| 中文字幕亚洲欧美在线不卡| 欧美亚洲尤物久久| 蜜桃精品视频在线| 国产精品国产三级国产普通话蜜臀 | 欧美一区二区在线免费播放| 日韩国产精品久久久久久亚洲| 精品久久久久一区| 99re8在线精品视频免费播放| 一区二区三区视频在线看| 91精品国产入口在线| 国产一区二区三区香蕉| ㊣最新国产の精品bt伙计久久| 欧美视频中文字幕| 久久99精品久久久久| 中文字幕在线一区免费| 欧美精品久久99| 国产精品综合二区| 亚洲一区在线观看免费观看电影高清 | 日韩欧美在线网站| 99亚偷拍自图区亚洲| 日韩极品在线观看| 中文在线一区二区| 欧美日韩国产高清一区| 国产精品一区二区视频| 亚洲国产精品麻豆| 国产欧美1区2区3区| 欧美日韩亚洲另类| 成年人网站91| 美女视频免费一区| 亚洲乱码国产乱码精品精的特点 | 日韩不卡手机在线v区| 综合亚洲深深色噜噜狠狠网站| 日韩视频在线观看一区二区| 91麻豆国产香蕉久久精品| 久久se精品一区精品二区| 一区二区三区在线视频免费观看| 久久这里只精品最新地址| 在线观看一区日韩| 成人一区在线看| 久久99久久久欧美国产| 亚洲午夜久久久久中文字幕久| 久久精品视频免费| 欧美r级在线观看| 欧美人与禽zozo性伦| 色八戒一区二区三区| www.日韩大片| 成人一级视频在线观看| 久久丁香综合五月国产三级网站| 婷婷亚洲久悠悠色悠在线播放| 1024精品合集| 国产精品视频免费看| 久久久久成人黄色影片| 久久综合色天天久久综合图片| 欧美一区二区三区公司| 欧美日韩国产综合一区二区| 不卡电影一区二区三区| jlzzjlzz亚洲女人18| 成人不卡免费av| 成+人+亚洲+综合天堂| 国产高清成人在线| 丰满放荡岳乱妇91ww| 国产精品自拍毛片| 国产91精品精华液一区二区三区 | 91久久精品一区二区三区| 国产99一区视频免费| 国产成人精品亚洲日本在线桃色 | 中文字幕亚洲一区二区va在线| 中文字幕欧美三区| 国产精品婷婷午夜在线观看| 国产精品美女一区二区在线观看| 欧美激情一区不卡| 亚洲欧美日韩精品久久久久| 亚洲欧洲制服丝袜| 亚洲va在线va天堂| 日韩电影免费在线看| 加勒比av一区二区| 成人a区在线观看| 99v久久综合狠狠综合久久| 色综合欧美在线| 欧洲视频一区二区| 欧美一区二区三区喷汁尤物| 久久亚洲影视婷婷| 成人免费一区二区三区视频| 亚洲综合免费观看高清完整版在线| 一区二区成人在线观看| 日韩精品色哟哟| 激情五月播播久久久精品| 国产精品一区二区免费不卡| www.性欧美| 欧美精品aⅴ在线视频| 欧美xxxx在线观看| 中文字幕中文字幕在线一区 | 6080午夜不卡| 久久女同性恋中文字幕| 18成人在线观看| 日韩精品一二三四| 粉嫩aⅴ一区二区三区四区| 色婷婷综合久久久中文一区二区| 欧美日韩国产一二三| 久久综合九色欧美综合狠狠| 国产精品家庭影院| 日韩电影一区二区三区四区| 国产91丝袜在线播放| 欧美亚洲国产一区二区三区 | 在线成人免费观看| 久久久一区二区三区捆绑**| 亚洲人成网站影音先锋播放| 日韩av电影天堂| 成人动漫一区二区三区| 7777精品伊人久久久大香线蕉经典版下载 | 亚洲国产aⅴ成人精品无吗| 国产一区二区三区免费在线观看 | 亚洲成人免费视| 国产精品88av| 欧美日韩视频第一区| 中文欧美字幕免费| 青娱乐精品在线视频| 91视视频在线观看入口直接观看www| 91精品综合久久久久久| 17c精品麻豆一区二区免费| 理论电影国产精品| 欧美日韩午夜精品| 亚洲视频中文字幕| 国产美女精品一区二区三区| 欧美猛男gaygay网站| 国产精品福利一区二区| 久久91精品国产91久久小草| 欧美日本一区二区三区四区| 中文字幕中文字幕一区二区| 国产一区 二区| 日韩一区二区在线免费观看| 夜夜嗨av一区二区三区| 成人免费黄色在线| 久久久亚洲综合| 久久精品噜噜噜成人av农村| 欧美日韩精品三区| 亚洲一区欧美一区| 色偷偷久久一区二区三区| 国产欧美日韩亚州综合| 久久疯狂做爰流白浆xx| 制服丝袜在线91| 日韩综合在线视频| 欧美视频三区在线播放| 亚洲精品国产第一综合99久久| 成人激情免费视频| 国产欧美va欧美不卡在线| 激情综合一区二区三区| 日韩欧美国产wwwww| 日精品一区二区| 91精品国产色综合久久不卡电影 | 精品久久久久久久久久久久久久久久久| 亚洲激情自拍视频| 欧美午夜精品久久久久久超碰| 亚洲免费观看高清在线观看| 色综合天天在线| 亚洲精选在线视频| 一本到高清视频免费精品| 亚洲色图欧洲色图| 日本乱码高清不卡字幕| 一区二区三区四区视频精品免费 | 婷婷六月综合亚洲| 777奇米成人网| 奇米四色…亚洲| 欧美一级片免费看| 久久99久久99| 国产亚洲福利社区一区| 成人一级片在线观看| 亚洲日本va午夜在线影院| 色哟哟国产精品| 亚洲va韩国va欧美va| 日韩欧美一级特黄在线播放| 国内精品久久久久影院薰衣草 | 色婷婷久久久综合中文字幕| 一区二区三区高清在线| 欧美日韩情趣电影| 另类专区欧美蜜桃臀第一页| 久久中文娱乐网| 91色porny| 日韩成人av影视| 国产色爱av资源综合区| 色综合久久久久综合体| 午夜日韩在线电影| 久久综合色8888| 91在线视频在线| 日本中文一区二区三区| 欧美激情一区不卡| 欧美视频在线播放| 国产成人精品1024|