首页> 外国专利> PARAMETER ACQUISITION METHOD AND DEVICE FOR GENERAL PROTOCOL PARSING AND GENERAL PROTOCOL PARSING METHOD AND DEVICE

PARAMETER ACQUISITION METHOD AND DEVICE FOR GENERAL PROTOCOL PARSING AND GENERAL PROTOCOL PARSING METHOD AND DEVICE

机译:通用协议解析的参数获取方法和装置以及通用协议解析的方法和装置

摘要

The present disclosure provides a parameter acquisition method and device for general protocol parsing and a general protocol parsing method and device. The method includes: acquiring a message to be parsed; according to a preset state transition table, performing regular expression matching on the message to be parsed, and acquiring a state number and location information of a character corresponding to a matched matching rule; and acquiring the matching rule corresponding to the state number according to a preset rule matching table, and outputting a required field according to the matching rule, the location information, and the buffered message to be parsed, where the matching rule is an initial point sub-rule or an end point sub-rule. Embodiments of the present disclosure may implement general parsing on the protocol.
机译:本公开提供了一种用于通用协议解析的参数获取方法和装置以及一种通用协议解析方法和装置。该方法包括:获取待解析的消息;根据预设的状态转移表,对待解析的消息进行正则表达式匹配,获取与匹配的匹配规则对应的字符的状态号和位置信息;根据预设的规则匹配表获取与状态编号对应的匹配规则,并根据匹配规则,位置信息和待解析的缓存消息输出所需字段,所述匹配规则为初始点子-规则或终点子规则。本公开的实施例可以在协议上实现通用解析。

著录项

相似文献

  • 专利
  • 外文文献
  • 中文文献
获取专利

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号