作者投稿和查稿 主编审稿 专家审稿 编委审稿 远程编辑

计算机工程 ›› 2013, Vol. 39 ›› Issue (1): 275-278. doi: 10.3969/j.issn.1000-3428.2013.01.060

• 工程应用技术与实现 • 上一篇    下一篇

基于I/O缓冲区读写的控制台远程交互模型

唐 磊,宋宇波,蓝智灵   

  1. (东南大学信息科学与工程学院,南京 210096)
  • 收稿日期:2012-03-09 修回日期:2012-04-28 出版日期:2013-01-15 发布日期:2013-01-13
  • 作者简介:唐 磊(1988-),男,硕士研究生,主研方向:信息安全;宋宇波,副教授;蓝智灵,硕士研究生
  • 基金资助:
    国家“863”计划基金资助项目(2009AA01Z427)

Console Remote Interaction Model Based on I/O Buffer Read and Write

TANG Lei, SONG Yu-bo, LAN Zhi-ling   

  1. (School of Information Science and Engineering, Southeast University, Nanjing 210096, China)
  • Received:2012-03-09 Revised:2012-04-28 Online:2013-01-15 Published:2013-01-13

摘要: 在控制台程序远程交互时,使用添加远程通信模块的方法易降低控制台程序的兼容性,而重定向标准输入输出方法易降低系统软件的兼容性。针对以上问题,提出一种控制台远程交互模型。通过模拟键盘将数据输入到控制台窗口输入缓冲区,并从其输出缓冲区得到回显数据。实验结果证明,该模型适用于各种常用控制台程序,不会与系统软件产生冲突,可实现与控制台程序的交互。

关键词: 输入缓冲区, 输出缓冲区, 控制台程序, 远程交互, 加载器, 兼容性

Abstract: A model for remote interaction of user with console program is proposed according to the problems that console program compatibility is reduced by adding remote communication module and system application compatibility is reduced by redirecting standard I/O. This model devises a console program loader which adopts a method of writing commands into the console window input buffer by simulated keyboard input and reading echo data from its output buffer for interaction. Experimental results demonstrate that the model is appropriate for all kinds of normal console program and cannot conflict with system software. It can be adopted for interacting with console program.

Key words: input buffer, output buffer, console program, remote interaction, loader, compatibility

中图分类号: