readme_nonblockreaddemo.txt
来自「vxworks 下的网络程序源码 包括」· 文本 代码 · 共 35 行
TXT
35 行
FILE LIST - nonBlockReadDemo.c DESCRIPTION - This code is an example of doing a nonBlocking read on a port in raw mode. The first read blocks and waits for a character. It then checks to see if additional characters have been sent as a result of pressing a special key such as <- (left arrow) If so, a special case is invoked to handle this (printf in this case) What to do with the data is left up to the customer. RUNNING DEMO - Place the nonBlockReadDemo.c in your <Tornado> dir. Add this file to your project, re-build projectName.out and download it. To run this code invoke the function nonBlockReadRawStart(). TESTED ON - Host/Target : Solaris 5.5.1 / mv2700 VxWorks : 5.4 OUTPUT - On VxWorks target: ================= ->nonBlockReadRawStart Starting Read Test Opening File Descriptors Setting to raw mode Flushing read and write ports initialization done value = 0 = 0x0
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?