摘要: 提出一种基于特征关键字的多协议数据流转换方法,分析基于特征关键字的数据帧格式描述方法,通过将通信协议数据帧格式的描述与数据流的解析转换代码相分离,实现与协议无关的数据流解析和转换。该方法用稳定的程序处理不稳定的数据流,避免不同通信协议之间的数据流转换均要编写专用解析转换程序的缺陷,具有较好的灵活性和普适性。
关键词:
特征关键字,
通信协议,
数据帧格式,
协议描述,
数据流转换
Abstract: This paper introduces a multi-protocol data stream conversion method based on characteristic keyword, in which the data-frame format is described by characteristic keywords, and the data stream parse and conversion program are independent of the communication protocol by separating the description of communication protocol data frame format from the parse and conversion program. This method uses the stable procedure to process the unstable data streams. It can avoid writing special parse and conversion program for different communication protocol, and make the program more flexible and more adaptable.
Key words:
characteristic keyword,
communication protocol,
data-frame format,
protocol description,
data stream conversion
中图分类号:
林霞, 蔡声镇, 吴允平, 卢宇, 关健, 吴燕, 陈锦凯. 基于特征关键字的多协议数据流转换方法[J]. 计算机工程, 2011, 37(5): 282-284,287.
LIN Xia, CA Qing-Tian, TUN Yuan-Beng, LEI Yu, GUAN Jian, TUN Yan, CHEN Jin-Kai. Multi-protocol Data Stream Conversion Method Based on Characteristic Keyword[J]. Computer Engineering, 2011, 37(5): 282-284,287.