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

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

?? tcp_server_demo.lst

?? cs8900 c51應用
?? LST
?? 第 1 頁 / 共 2 頁
字號:
C51 COMPILER V7.06   TCP_SERVER_DEMO                                                       11/26/2004 11:32:46 PAGE 1   


C51 COMPILER V7.06, COMPILATION OF MODULE TCP_SERVER_DEMO
OBJECT MODULE PLACED IN .\8052-obj\tcp_server_demo.obj
COMPILER INVOKED BY: C:\Keil\C51\BIN\C51.EXE tcp_server_demo.c LARGE OPTIMIZE(SIZE) BROWSE INTVECTOR(0X2000) INCDIR(D:\W
                    -ork\opentcp\1-0-2\src\include\) DEFINE(MONITOR,CS8900) DEBUG OBJECTEXTEND CODE SYMBOLS PRINT(.\8052-lst\tcp_server_demo.
                    -lst) PREPRINT(.\8052-lst\tcp_server_demo.i) OBJECT(.\8052-obj\tcp_server_demo.obj)

stmt level    source

   1          /*
   2           *Copyright (c) 2000-2002 Viola Systems Ltd.
   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           *
   9           *1. Redistributions of source code must retain the above copyright 
  10           *notice, this list of conditions and the following disclaimer.
  11           *
  12           *2. Redistributions in binary form must reproduce the above copyright 
  13           *notice, this list of conditions and the following disclaimer in the 
  14           *documentation and/or other materials provided with the distribution.
  15           *
  16           *3. The end-user documentation included with the redistribution, if 
  17           *any, must include the following acknowledgment:
  18           *      "This product includes software developed by Viola 
  19           *      Systems (http://www.violasystems.com/)."
  20           *
  21           *Alternately, this acknowledgment may appear in the software itself, 
  22           *if and wherever such third-party acknowledgments normally appear.
  23           *
  24           *4. The names "OpenTCP" and "Viola Systems" must not be used to 
  25           *endorse or promote products derived from this software without prior 
  26           *written permission. For written permission, please contact 
  27           *opentcp@opentcp.org.
  28           *
  29           *5. Products derived from this software may not be called "OpenTCP", 
  30           *nor may "OpenTCP" appear in their name, without prior written 
  31           *permission of the Viola Systems Ltd.
  32           *
  33           *THIS SOFTWARE IS PROVIDED "AS IS" AND ANY EXPRESSED OR IMPLIED 
  34           *WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF 
  35           *MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 
  36           *IN NO EVENT SHALL VIOLA SYSTEMS LTD. OR ITS CONTRIBUTORS BE LIABLE 
  37           *FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 
  38           *CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 
  39           *SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR 
  40           *BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, 
  41           *WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE 
  42           *OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, 
  43           *EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  44           *====================================================================
  45           *
  46           *OpenTCP is the unified open source TCP/IP stack available on a series 
  47           *of 8/16-bit microcontrollers, please see <http://www.opentcp.org>.
  48           *
  49           *For more information on how to network-enable your devices, or how to 
  50           *obtain commercial technical support for OpenTCP, please see 
  51           *<http://www.violasystems.com/>.
  52           */
  53          
C51 COMPILER V7.06   TCP_SERVER_DEMO                                                       11/26/2004 11:32:46 PAGE 2   

  54          /** \file tcp_server_demo.c
  55           *      \ingroup opentcp_example
  56           *      \brief Demonstration of a possible scenario of writing TCP applications
  57           *      \author 
  58           *              \li Vladan Jovanovic (vladan.jovanovic@violasystems.com)
  59           *      \version 1.0
  60           *      \date 10.10.2002
  61           *      \bug
  62           *      \warning
  63           *              \li This example is given for demonstration purposes only. It
  64           *              was not tested for correct operation.
  65           *      \todo
  66           *  
  67           *      Blank TCP demo application showing TCP functions and how applications
  68           *      might use them. Please note that this is an example for a TCP server
  69           *      application - the kind of application that waits for a connection and
  70           *      does not initiate connection establishment towards other hosts. 
  71           */
  72          #include <inet/debug.h>
*** WARNING C318 IN LINE 72 OF tcp_server_demo.c: can't open file 'inet/debug.h'
  73          #include <inet/datatypes.h>
*** WARNING C318 IN LINE 73 OF tcp_server_demo.c: can't open file 'inet/datatypes.h'
  74          #include <inet/globalvariables.h>
*** WARNING C318 IN LINE 74 OF tcp_server_demo.c: can't open file 'inet/globalvariables.h'
  75          #include <inet/system.h>
*** WARNING C318 IN LINE 75 OF tcp_server_demo.c: can't open file 'inet/system.h'
  76          #include <inet/tcp_ip.h>
*** WARNING C318 IN LINE 76 OF tcp_server_demo.c: can't open file 'inet/tcp_ip.h'
  77          
  78          UINT8 code HelloMsg[] = "Hello. I am OpenTcp Demo Server\r\n";
*** ERROR C129 IN LINE 78 OF TCP_SERVER_DEMO.C: missing ';' before 'code'
  79          UINT8 Buffer[1000];
  80          UINT16 BufferLen;
  81          
  82          extern UINT8 tcpc_demo_senddata;
  83          
  84          /* The applications that use TCP must implement following function stubs                        */
  85          /* void application_name_init (void) - call once when processor starts                          */
  86          /* void application_name_run (void) - call periodically on main loop                            */
  87          /* INT32 application_name_eventlistener (INT8, UINT8, UINT32, UINT32)                           */
  88          /* - called by TCP input process to inform arriving data, errors etc */
  89          
  90          /* These will probably go to some include file */
  91          void tcps_demo_init(void);
  92          void tcps_demo_run(void);
  93          INT32 tcps_demo_eventlistener(INT8 , UINT8 , UINT32 , UINT32 ) reentrant;
  94          
  95          /** \brief Socket handle holder for this application
  96           *
  97           * This variable holds the assigned socket handle. Note that this application 
  98           * will reserve one TCP socket immediately and will not release it. For
  99           * saving resources, TCP sockets can also be allocated/deallocated 
 100           * dynamically.
 101           */
 102          INT8 tcps_demo_soch;
 103          
 104          UINT8 tcps_demo_senddata; /**< Used to trigger data sending */
 105          
 106          #define TCPS_DEMO_PORT  5001 /**< Port number on which we'll be listening for incoming connections */
 107          
 108          /* Internal function used for sending data to a predefined host */
 109          INT16 tcps_demo_send(void);
C51 COMPILER V7.06   TCP_SERVER_DEMO                                                       11/26/2004 11:32:46 PAGE 3   

 110          
 111          /* Initialize resources needed for the TCP server application */
 112          void tcps_demo_init(void)
 113          {
 114                  
 115                  DEBUGOUT("Initializing TCP server application. \r\n");
 116                          
 117                  /* Get socket:
 118                   *      TCP_TYPE_SERVER - type of TCP socket is server
 119                   *      TCP_TOS_NORMAL  - no other type of service implemented so far
 120                   *      TCP_DEF_TOUT    - timeout value in seconds. If for this many seconds
 121                   *              no data is exchanged over the TCP connection the socket will be
 122                   *              closed.
 123                   *      tcps_demo_eventlistener - pointer to event listener function for
 124                   *              this socket.    
 125                   */
 126          
 127                  tcps_demo_soch = tcp_getsocket(TCP_TYPE_SERVER, TCP_TOS_NORMAL, TCP_DEF_TOUT, tcps_demo_eventlistener);
 128                  
 129                  if( tcps_demo_soch < 0 )
 130                  {
 131                          DEBUGOUT("TCP server unable to get socket. Resetting!!!\r\n");
 132                          RESET_SYSTEM();
 133                  }
 134                  
 135                  /* Put it to listen on some port        */
 136                  tcp_listen(tcps_demo_soch,TCPS_DEMO_PORT);
 137                  
 138                  /* for now no data sending */
 139                  tcps_demo_senddata=0;
 140          }
 141          
 142          void tcps_demo_run(void)
 143          {
 144                  
 145                  UINT8   i;
 146                  
 147                  /* do maybe some other TCP server app stuff
 148                   * .....
 149                   */
 150                  
 151                  if(tcps_demo_senddata){
 152                          if(tcps_demo_send()!=-1)                
 153                                  tcps_demo_senddata=0;
 154                  }

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
久久亚洲一级片| 韩国欧美国产1区| 欧美一区二区三区性视频| 国产传媒一区在线| 亚洲超碰精品一区二区| 中文字幕国产一区二区| 日韩一级片网站| 欧美三级一区二区| 99久久伊人网影院| 国产精品资源网| 日韩不卡一区二区| 亚洲一区二区免费视频| 国产精品久久久久久久岛一牛影视 | 亚洲精品国产成人久久av盗摄| 精品乱人伦小说| 91麻豆精品91久久久久久清纯| 色噜噜狠狠一区二区三区果冻| 激情欧美日韩一区二区| 日韩黄色一级片| 亚洲成人免费在线观看| 亚洲美女区一区| 国产精品成人免费| 亚洲国产高清不卡| 国产三级欧美三级日产三级99 | 粉嫩av一区二区三区粉嫩| 美女诱惑一区二区| 婷婷久久综合九色国产成人 | 亚洲一区二区四区蜜桃| 亚洲色图19p| 中文字幕五月欧美| 国产精品人人做人人爽人人添| 久久麻豆一区二区| 久久精品一区蜜桃臀影院| 久久综合色综合88| 久久免费看少妇高潮| 久久影院午夜论| 久久精品视频免费观看| 国产丝袜在线精品| 国产精品丝袜久久久久久app| 国产校园另类小说区| 国产视频不卡一区| 中文av字幕一区| 亚洲欧美日韩中文播放| 一区二区视频在线| 亚洲国产毛片aaaaa无费看| 亚洲午夜成aⅴ人片| 五月婷婷激情综合网| 日韩一区精品视频| 久久丁香综合五月国产三级网站| 蜜臀av性久久久久蜜臀aⅴ四虎| 日本成人在线看| 黄一区二区三区| 国产成人精品一区二| 91首页免费视频| 欧洲精品一区二区三区在线观看| 欧美日韩国产在线播放网站| 欧美精品久久99| 精品国产sm最大网站免费看| 国产三级久久久| 亚洲精品午夜久久久| 日日夜夜精品视频免费| 激情欧美一区二区三区在线观看| 福利一区二区在线观看| 在线视频一区二区免费| 欧美丰满嫩嫩电影| 国产偷v国产偷v亚洲高清| 亚洲色图在线视频| 蜜臀av一区二区| av影院午夜一区| 欧美日韩精品电影| 久久精品欧美日韩| 亚洲美女偷拍久久| 久久99久久久欧美国产| 99久久久精品免费观看国产蜜| 欧美日韩aaa| 日本一区二区三区四区在线视频| 亚洲另类在线视频| 狠狠色2019综合网| 欧洲激情一区二区| 久久久久久久免费视频了| 亚洲精品美国一| 激情文学综合丁香| 在线看国产一区二区| 欧美大片免费久久精品三p| 国产精品久久久久久亚洲毛片| 香蕉成人伊视频在线观看| 国产传媒久久文化传媒| 欧美日韩国产乱码电影| 国产日产欧产精品推荐色 | 丝袜诱惑亚洲看片| 波多野结衣在线一区| 欧美一区二区视频在线观看2020 | 看片的网站亚洲| 91国偷自产一区二区使用方法| 欧美成人女星排行榜| 亚洲精选视频在线| 国产成人日日夜夜| 欧美一区2区视频在线观看| 亚洲蜜臀av乱码久久精品蜜桃| 精品中文av资源站在线观看| 欧美性做爰猛烈叫床潮| 中文字幕不卡的av| 精品一区二区影视| 51午夜精品国产| 亚洲在线中文字幕| av激情综合网| 国产人成一区二区三区影院| 日本视频一区二区| 欧美日韩中文字幕一区二区| 国产精品久久久久影院亚瑟| 国内精品写真在线观看| 欧美日韩视频一区二区| 亚洲美女屁股眼交3| 国产 日韩 欧美大片| 日韩免费一区二区| 丝袜亚洲另类欧美综合| 欧美在线看片a免费观看| 最新欧美精品一区二区三区| 国产盗摄女厕一区二区三区| 精品人在线二区三区| 日韩av一区二区三区四区| 欧美综合亚洲图片综合区| 专区另类欧美日韩| gogogo免费视频观看亚洲一| 国产亚洲精品bt天堂精选| 老司机免费视频一区二区三区| 欧美日韩成人在线一区| 亚洲一区二区不卡免费| 色婷婷综合久久久中文字幕| 国产精品伦理一区二区| 国产98色在线|日韩| 久久久久久久久岛国免费| 狠狠色丁香婷婷综合久久片| 精品国产乱子伦一区| 国内精品视频666| 久久精品这里都是精品| 国产激情一区二区三区四区| 国产日产亚洲精品系列| 成人免费毛片app| 亚洲图片激情小说| 色综合中文字幕国产 | 视频一区二区国产| 911国产精品| 久久av中文字幕片| 国产视频一区二区三区在线观看| 国产精品99久久久| 国产精品第一页第二页第三页| 99精品视频在线观看| 一区二区三区在线观看视频| 欧美三级在线播放| 免费成人在线视频观看| 欧美精品一区二区三区蜜桃 | 久久66热偷产精品| 久久久久久亚洲综合影院红桃| 国产精品一级黄| 亚洲视频精选在线| 欧美日韩高清影院| 久久99久久久久久久久久久| 国产日韩欧美精品在线| 99久久精品国产一区二区三区| 一区二区三区欧美亚洲| 宅男在线国产精品| 国产精品一区二区黑丝| 亚洲日本一区二区三区| 欧美午夜片在线看| 久久激情五月婷婷| 国产精品嫩草影院com| 欧美网站大全在线观看| 久久精品国产久精国产| 中文字幕在线播放不卡一区| 91成人免费网站| 狂野欧美性猛交blacked| 国产精品免费免费| 欧美精品电影在线播放| 国产精品1区2区3区| 亚洲老妇xxxxxx| 久久影音资源网| 色嗨嗨av一区二区三区| 美国精品在线观看| 最新日韩av在线| 欧美大片一区二区| 色综合一个色综合| 国产最新精品精品你懂的| 亚洲精品国产成人久久av盗摄| 精品欧美久久久| 欧美在线短视频| 粉嫩13p一区二区三区| 午夜成人免费视频| 国产清纯白嫩初高生在线观看91| 欧美日韩一区二区三区免费看| 麻豆精品新av中文字幕| 亚洲激情一二三区| 久久久五月婷婷| 91精品久久久久久久久99蜜臂| 91在线视频官网| 国产成人亚洲综合a∨猫咪| 免费看欧美美女黄的网站| 亚洲视频免费在线| 国产喷白浆一区二区三区| 欧美一区二区三区白人|