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

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

?? cgi.lst

?? c51版本的uip(一個超小型的TCPIP棧,支持tcpudparpicmp.
?? LST
字號:
C51 COMPILER V7.08   CGI                                                                   12/26/2003 07:27:15 PAGE 1   


C51 COMPILER V7.08, COMPILATION OF MODULE CGI
OBJECT MODULE PLACED IN cgi.OBJ
COMPILER INVOKED BY: C:\Keil708\C51\BIN\C51.EXE cgi.c LARGE BROWSE DEBUG OBJECTEXTEND

line level    source

   1          /*
   2           * Copyright (c) 2001, Adam Dunkels.
   3           * All rights reserved. 
   4           *
   5           * Redistribution and use in source and binary forms, with or without 
   6           * modification, are permitted provided that the following conditions 
   7           * are met: 
   8           * 1. Redistributions of source code must retain the above copyright 
   9           *    notice, this list of conditions and the following disclaimer. 
  10           * 2. Redistributions in binary form must reproduce the above copyright 
  11           *    notice, this list of conditions and the following disclaimer in the 
  12           *    documentation and/or other materials provided with the distribution. 
  13           * 3. All advertising materials mentioning features or use of this software
  14           *    must display the following acknowledgement:
  15           *      This product includes software developed by Adam Dunkels.
  16           * 4. The name of the author may not be used to endorse or promote
  17           *    products derived from this software without specific prior
  18           *    written permission.  
  19           *
  20           * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS
  21           * OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
  22           * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  23           * ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY
  24           * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  25           * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
  26           * GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
  27           * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
  28           * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
  29           * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
  30           * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.  
  31           *
  32           * This file is part of the uIP TCP/IP stack.
  33           *
  34           * $Id: cgi.c,v 1.21 2002/01/13 21:12:40 adam Exp $
  35           *
  36           */
  37          
  38          /*
  39           * This file includes functions that are called by the web server
  40           * scripts. The functions takes no argument, and the return value is
  41           * interpreted as follows. A zero means that the function did not
  42           * complete and should be invoked for the next packet as well. A
  43           * non-zero value indicates that the function has completed and that
  44           * the web server should move along to the next script line.
  45           *
  46           */
  47          
  48          #include "uip.h"
  49          #include "cgi.h"
  50          #include "httpd.h"
  51          #include "fs.h"
  52          
  53          #include <stdio.h>
  54          #include <string.h>
  55          
C51 COMPILER V7.08   CGI                                                                   12/26/2003 07:27:15 PAGE 2   

  56          static u8_t print_stats(void);
  57          static u8_t file_stats(void);
  58          static u8_t tcp_stats(void);
  59          
  60          cgifunction cgitab[] = {
  61            print_stats,   /* CGI function "a" */
  62            file_stats,    /* CGI function "b" */
  63            tcp_stats      /* CGI function "c" */
  64          };
  65          
  66          static code char closed[] =   /*  "CLOSED",*/
  67          {0x43, 0x4c, 0x4f, 0x53, 0x45, 0x44, 0};
  68          static code char syn_rcvd[] = /*  "SYN-RCVD",*/
  69          {0x53, 0x59, 0x4e, 0x2d, 0x52, 0x43, 0x56, 
  70           0x44,  0};
  71          static code char syn_sent[] = /*  "SYN-SENT",*/
  72          {0x53, 0x59, 0x4e, 0x2d, 0x53, 0x45, 0x4e, 
  73           0x54,  0};
  74          static code char established[] = /*  "ESTABLISHED",*/
  75          {0x45, 0x53, 0x54, 0x41, 0x42, 0x4c, 0x49, 0x53, 0x48, 
  76           0x45, 0x44, 0};
  77          static code char fin_wait_1[] = /*  "FIN-WAIT-1",*/
  78          {0x46, 0x49, 0x4e, 0x2d, 0x57, 0x41, 0x49, 
  79           0x54, 0x2d, 0x31, 0};
  80          static code char fin_wait_2[] = /*  "FIN-WAIT-2",*/
  81          {0x46, 0x49, 0x4e, 0x2d, 0x57, 0x41, 0x49, 
  82           0x54, 0x2d, 0x32, 0};
  83          static code char closing[] = /*  "CLOSING",*/
  84          {0x43, 0x4c, 0x4f, 0x53, 0x49, 
  85           0x4e, 0x47, 0};
  86          static code char time_wait[] = /*  "TIME-WAIT,"*/
  87          {0x54, 0x49, 0x4d, 0x45, 0x2d, 0x57, 0x41, 
  88           0x49, 0x54, 0};
  89          static code char last_ack[] = /*  "LAST-ACK"*/
  90          {0x4c, 0x41, 0x53, 0x54, 0x2d, 0x41, 0x43, 
  91           0x4b, 0};
  92          
  93          static code char *states[] = {
  94            closed,
  95            syn_rcvd,
  96            syn_sent,
  97            established,
  98            fin_wait_1,
  99            fin_wait_2,
 100            closing,
 101            time_wait,
 102            last_ack};
 103            
 104          
 105          /*-----------------------------------------------------------------------------------*/
 106          /* print_stats:
 107           *
 108           * Prints out a part of the uIP statistics. The statistics data is
 109           * written into the uip_appdata buffer. It overwrites any incoming
 110           * packet.
 111           */
 112          static u8_t
 113          print_stats(void)
 114          {
 115   1      #if UIP_STATISTICS
 116   1        u16_t i, j;
 117   1        u8_t *buf;
C51 COMPILER V7.08   CGI                                                                   12/26/2003 07:27:15 PAGE 3   

 118   1        u16_t *databytes;
 119   1        
 120   1        if(uip_acked()) {
 121   2          /* If our last data has been acknowledged, we move on the next
 122   2             chunk of statistics. */
 123   2          hs->count = hs->count + 4;
 124   2          if(hs->count >= sizeof(struct uip_stats)/sizeof(u16_t)) {
 125   3            /* We have printed out all statistics, so we return 1 to
 126   3               indicate that we are done. */
 127   3            return 1;
 128   3          }
 129   2        }
 130   1      
 131   1        /* Write part of the statistics into the uip_appdata buffer. */
 132   1        databytes = (u16_t *)&uip_stat + hs->count;
 133   1        buf       = (u8_t *)uip_appdata;
 134   1      
 135   1        j = 4 + 1;
 136   1        i = hs->count;
 137   1        while (i < sizeof(struct uip_stats)/sizeof(u16_t) && --j > 0) {
 138   2          sprintf((char *)buf, "%5u\r\n", *databytes);
 139   2          ++databytes;
 140   2          buf += 6;
 141   2          ++i;
 142   2        }
 143   1      
 144   1        /* Send the data. */
 145   1        uip_send(uip_appdata, buf - uip_appdata);
 146   1        
 147   1        return 0;
 148   1      #else
                return 1;
              #endif /* UIP_STATISTICS */
 151   1      }
 152          /*-----------------------------------------------------------------------------------*/
 153          static u8_t
 154          file_stats(void)
 155          {
 156   1        /* We use sprintf() to print the number of file accesses to a
 157   1           particular file (given as an argument to the function in the
 158   1           script). We then use uip_send() to actually send the data. */
 159   1        if(uip_acked()) {
 160   2          return 1;
 161   2        }
 162   1        uip_send(uip_appdata, sprintf((char *)uip_appdata, "%5u", fs_count(&hs->script[4])));  
 163   1        return 0;
 164   1      }
 165          /*-----------------------------------------------------------------------------------*/
 166          static u8_t
 167          tcp_stats(void)
 168          {
 169   1        struct uip_conn *conn;  
 170   1      
 171   1        if(uip_acked()) {
 172   2          /* If the previously sent data has been acknowledged, we move
 173   2             forward one connection. */
 174   2          if(++hs->count == UIP_CONNS) {
 175   3            /* If all connections has been printed out, we are done and
 176   3               return 1. */
 177   3            return 1;
 178   3          }
 179   2        }
C51 COMPILER V7.08   CGI                                                                   12/26/2003 07:27:15 PAGE 4   

 180   1        
 181   1        conn = &uip_conns[hs->count];
 182   1        if((conn->tcpstateflags & TS_MASK) == CLOSED) {
 183   2          uip_send(uip_appdata, sprintf((char *)uip_appdata,
 188   2                                        "<tr align=\"center\"><td>-</td><td>-</td><td>%d</td><td>%d</td><td>%c %c</td></tr>\r\n",
 188   2                                        conn->nrtx,
 188   2                                        conn->timer,
 188   2                                        (conn->tcpstateflags & UIP_OUTSTANDING)? '*':' ',
 188   2                                        (conn->tcpstateflags & UIP_STOPPED)? '!':' '));
 189   2        } else {
 190   2          uip_send(uip_appdata, sprintf((char *)uip_appdata,
 201   2                                        "<tr align=\"center\"><td>%d.%d.%d.%d:%d</td><td>%s</td><td>%d</td><td>%d</td><td>%c %c</td></tr>\r\
             -n",
 201   2                                        ntohs(conn->ripaddr[0]) >> 8,
 201   2                                        ntohs(conn->ripaddr[0]) & 0xff,
 201   2                                        ntohs(conn->ripaddr[1]) >> 8,
 201   2                                        ntohs(conn->ripaddr[1]) & 0xff,
 201   2                                        ntohs(conn->rport),
 201   2                                        states[conn->tcpstateflags & TS_MASK],
 201   2                                        conn->nrtx,
 201   2                                        conn->timer,
 201   2                                        (conn->tcpstateflags & UIP_OUTSTANDING)? '*':' ',
 201   2                                        (conn->tcpstateflags & UIP_STOPPED)? '!':' '));
 202   2        }
 203   1        return 0;
 204   1      }
 205          /*-----------------------------------------------------------------------------------*/


MODULE INFORMATION:   STATIC OVERLAYABLE
   CODE SIZE        =    864    ----
   CONSTANT SIZE    =    303    ----
   XDATA SIZE       =      9      13
   PDATA SIZE       =   ----    ----
   DATA SIZE        =   ----    ----
   IDATA SIZE       =   ----    ----
   BIT SIZE         =   ----    ----
END OF MODULE INFORMATION.


C51 COMPILATION COMPLETE.  0 WARNING(S),  0 ERROR(S)

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
亚洲国产精品成人综合| 777a∨成人精品桃花网| 国产一区二区网址| 另类小说色综合网站| 蜜桃av噜噜一区| 美国av一区二区| 经典三级一区二区| 国产成人一级电影| 丁香激情综合国产| 99re热这里只有精品视频| 99re8在线精品视频免费播放| 成人综合婷婷国产精品久久蜜臀 | 天堂影院一区二区| 天天综合网 天天综合色| 天天综合网 天天综合色| 久久精品国产在热久久| 国产成人在线视频免费播放| 国产成人高清视频| 日本道在线观看一区二区| 欧美日韩高清一区| 亚洲精品在线观看视频| 国产精品每日更新在线播放网址| 日韩毛片精品高清免费| 天堂资源在线中文精品| 国产一二精品视频| 色88888久久久久久影院按摩| 欧美精品99久久久**| 久久久精品国产免费观看同学| 国产精品嫩草99a| 亚洲综合久久av| 精品午夜一区二区三区在线观看 | 欧美伊人精品成人久久综合97 | 欧美一级免费观看| 欧美极品少妇xxxxⅹ高跟鞋| 亚洲一区视频在线| 国产精品一区二区你懂的| 91高清在线观看| 精品av久久707| 一区二区三区日韩精品视频| 久久99国产精品久久99果冻传媒| eeuss国产一区二区三区| 欧美一区永久视频免费观看| 国产精品传媒在线| 精品一区二区在线看| 欧美午夜免费电影| 国产精品不卡一区二区三区| 三级在线观看一区二区| 91女人视频在线观看| 久久久九九九九| 日本不卡视频在线| 欧美日韩国产经典色站一区二区三区| 久久久久久亚洲综合| 日韩精品久久理论片| 色综合天天综合网国产成人综合天| 欧美日韩中文字幕精品| 久久一日本道色综合| 男女男精品网站| 日本韩国一区二区三区| 中文字幕精品—区二区四季| 精品一区中文字幕| 91精品国产黑色紧身裤美女| 一区二区三区精品久久久| 成人国产在线观看| 久久亚洲一区二区三区明星换脸| 日韩不卡一二三区| 欧美日韩高清一区二区三区| 亚洲午夜在线视频| 蜜臀av性久久久久蜜臀aⅴ流畅| 日本高清视频一区二区| 中文字幕佐山爱一区二区免费| 成人禁用看黄a在线| 国产日韩欧美高清在线| 国产精品小仙女| 久久精品亚洲一区二区三区浴池| 精品在线免费视频| www国产亚洲精品久久麻豆| 麻豆国产欧美日韩综合精品二区 | 777色狠狠一区二区三区| 夜夜操天天操亚洲| 欧美在线观看禁18| 亚洲h在线观看| 欧美一卡2卡三卡4卡5免费| 婷婷开心激情综合| 欧美成人aa大片| 国产做a爰片久久毛片| 国产人妖乱国产精品人妖| 成人永久免费视频| 一区二区三区四区蜜桃| 欧美蜜桃一区二区三区| 美女视频黄 久久| 精品国产乱码91久久久久久网站| 国产精品亚洲午夜一区二区三区| 久久精品亚洲精品国产欧美kt∨| 成人午夜激情视频| 伊人色综合久久天天| 欧美撒尿777hd撒尿| 理论电影国产精品| 国产精品免费观看视频| 欧美在线小视频| 蜜桃av一区二区在线观看| 国产精品伦理一区二区| 欧美日韩亚洲综合| 精品在线播放免费| 亚洲免费在线看| 91精品国产综合久久久久久久| 国产美女视频一区| 亚洲综合色丁香婷婷六月图片| 91精品国产乱| 99r精品视频| 久久国产人妖系列| 亚洲女爱视频在线| 欧美tickling网站挠脚心| 97se亚洲国产综合在线| 青青草伊人久久| 中文字幕欧美一| 日韩欧美亚洲一区二区| 91在线视频免费观看| 老司机午夜精品99久久| 亚洲视频一区在线| 精品理论电影在线| 欧美日韩综合不卡| 91小视频免费看| 国产一区二区毛片| 日日欢夜夜爽一区| 亚洲同性gay激情无套| 精品国产免费视频| 91精品国产品国语在线不卡 | 亚洲午夜av在线| 亚洲国产成人在线| 精品va天堂亚洲国产| 欧美年轻男男videosbes| 色综合天天综合在线视频| 国产一区二区伦理片| 久久精品久久精品| 日韩高清在线观看| 亚洲一区二区欧美日韩| 中文字幕一区二区三区av| 久久久久国产免费免费| 91精品国产91久久综合桃花| 欧美日韩国产区一| 欧美亚一区二区| 91在线视频18| 99精品国产热久久91蜜凸| 国产99精品视频| 一区二区视频免费在线观看| 中文字幕免费在线观看视频一区| 日韩视频在线永久播放| 欧美一区二区三区在线视频| 欧美日韩精品高清| 欧美日韩国产综合视频在线观看| 色视频一区二区| 在线观看视频一区| 在线观看91视频| 欧美日韩小视频| 欧美另类高清zo欧美| 8v天堂国产在线一区二区| 777a∨成人精品桃花网| 91麻豆精品国产91久久久使用方法 | 精品国产免费视频| 日韩精品一区二区三区四区| 欧美成人精品福利| 国产亚洲一二三区| 中文字幕一区二区在线观看| 亚洲三级电影网站| 亚洲国产综合在线| 天堂午夜影视日韩欧美一区二区| 日本不卡视频一二三区| 国产一区在线不卡| 成人性生交大片| 色婷婷久久久亚洲一区二区三区| 欧美综合天天夜夜久久| 欧美卡1卡2卡| 国产日韩综合av| 亚洲精品高清视频在线观看| 亚州成人在线电影| 国内欧美视频一区二区| 99久久精品情趣| 777欧美精品| 国产精品美女久久久久久久| 亚洲综合免费观看高清完整版在线| 视频在线观看91| 成人性生交大片免费看中文| 精品视频在线免费看| 久久人人爽爽爽人久久久| 亚洲欧洲中文日韩久久av乱码| 日韩电影网1区2区| 成人午夜免费av| 91精品国产一区二区三区蜜臀| 中文字幕乱码一区二区免费| 五月天婷婷综合| 成人性生交大片免费看中文 | 久久亚洲一区二区三区明星换脸| 中文字幕制服丝袜成人av| 亚洲成人在线网站| 国产精品亚洲午夜一区二区三区 | 在线免费观看一区| 久久久久亚洲蜜桃| 首页亚洲欧美制服丝腿| av成人老司机| 精品av综合导航|