摘要
状态转换图能恰当地反映通信协议的解析过程,通过构造与通信协议相应的状态转换图,可将输入的连续数据流解析为协议规定的数据帧。基于面向对象的方法,利用 C++虚函数等技术构造的状态转换图,能灵活地适应通信协议的变化,屏蔽实现细节,具有很高的通用性。在具体应用中,仅须根据协议构造状态转换图,直观简单,该方法已多次应用于工程实践中。
It felicitously reflected the parsing process of communications protocol with stares transfer diagram, With constructing the status transfer diagram accorded with communications protocol, the input seriate data was parsed into data-flame answering for the protocol. It could nearly acclimatize oneself to the variety of communications protocol and shield the detail of realization and be more universal that the stares transfer diagram was constructed with the C++ virtual function etc, based on Object Oriented method, In practice, the conformation of status transfer diagram is only based on the protocol. The method is intuitionistic and simple and was used times without number in project practice.
出处
《计算机与网络》
2008年第14期63-65,共3页
Computer & Network