一款简单易用的基础网络通讯组件库。

DmtpMessage(UInt16, ReadOnlyMemoryByte) 构造函数

初始化DmtpMessage类的新实例。

Definition

命名空间: TouchSocket.Dmtp
程序集: TouchSocket.Dmtp (在 TouchSocket.Dmtp.dll 中) 版本:4.0.0-beta.143+5fcca7a4e70968794985dc3793adc50531308be6
C#
public DmtpMessage(
	ushort protocolFlags,
	ReadOnlyMemory<byte> body
)

参数

protocolFlags  UInt16
协议标志。
body  ReadOnlyMemoryByte
消息主体数据。

备注

创建包含指定协议标志和主体数据的DMTP消息。

消息格式:

|*2*|*2*|**4**|***************n***********|

|Head|ProtocolFlags|Length|Data|

|dm|UInt16|Int32|bytes|

参见