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

DmtpMessage(UInt16, ReadOnlyMemoryByte) 构造函数

初始化DmtpMessage类的新实例。

Definition

命名空间: TouchSocket.Dmtp
程序集: TouchSocket.Dmtp (在 TouchSocket.Dmtp.dll 中) 版本:4.1.4.7+7f7e1f78093c99347956e09330d5d7aca1d2bdf2
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|

参见