点击或拖拽改变大小

SpecifiedCharacterMessage 类

专门用于接收指定字符结尾的网络消息
继承层次
SystemObject
  HslCommunication.Core.IMessageNetMessageBase
    HslCommunication.Core.IMessageSpecifiedCharacterMessage

命名空间:  HslCommunication.Core.IMessage
程序集:  HslCommunication (在 HslCommunication.dll 中) 版本:11.8.2.0 (11.8.2.0)
语法
public class SpecifiedCharacterMessage : NetMessageBase, 
	INetMessage

SpecifiedCharacterMessage 类型公开以下成员。

构造函数
  名称说明
公共方法SpecifiedCharacterMessage(Byte)
使用固定的一个字符结尾作为当前的报文接收条件,来实例化一个对象
Instantiate an object using a fixed end of one character as the current message reception condition
公共方法SpecifiedCharacterMessage(Byte, Byte)
使用固定的两个个字符结尾作为当前的报文接收条件,来实例化一个对象
Instantiate an object using a fixed two-character end as the current message reception condition
Top
属性
  名称说明
公共属性ContentBytes
消息内容字节
Message content byte
(继承自 NetMessageBase。)
公共属性EndLength
获取或设置在结束字符之后剩余的固定字节长度,有些则还包含两个字节的校验码,这时该值就需要设置为2。
Gets or sets the remaining fixed byte length after the end character, and some also contain a two-byte check code. In this case, the value needs to be set to 2.
公共属性HeadBytes
消息头字节
Message header byte
(继承自 NetMessageBase。)
公共属性ProtocolHeadBytesLength
消息头的指令长度,第一次接受数据的长度
Instruction length of the message header, the length of the first received data
公共属性SendBytes
发送的字节信息
Byte information sent
(继承自 NetMessageBase。)
Top
方法
  名称说明
公共方法CheckHeadBytesLegal
检查头子节的合法性
Check the legitimacy of the head subsection
(重写 NetMessageBaseCheckHeadBytesLegal(Byte).)
公共方法Equals (继承自 Object。)
受保护的方法Finalize (继承自 Object。)
公共方法GetContentLengthByHeadBytes
从当前的头子节文件中提取出接下来需要接收的数据长度
Extract the length of the data to be received from the current header file
公共方法GetHashCode (继承自 Object。)
公共方法GetHeadBytesIdentity
获取头子节里的消息标识
Get the message ID in the header subsection
(继承自 NetMessageBase。)
公共方法GetType (继承自 Object。)
受保护的方法MemberwiseClone (继承自 Object。)
公共方法PependedUselesByteLength
在接收头报文的时候,返回前置无效的报文头字节长度,默认为0,不处理
When receiving a header message, return the header byte length of the invalid header, the default is 0, and no processing is performed.
(继承自 NetMessageBase。)
公共方法ToString (继承自 Object。)
Top
扩展方法
  名称说明
公共扩展器方法ToJsonString
获取当前对象的JSON格式表示的字符串。
Gets the string represented by the JSON format of the current object.
(由 HslExtension 定义。)
Top
参见