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

UdpDataAdapterTesterRun 方法

模拟测试运行发送

Definition

命名空间: TouchSocket.Sockets
程序集: TouchSocket (在 TouchSocket.dll 中) 版本:3.0.0+ccaf96084d09f972257496d1dd63b8ba3c1e44f0
C#
public TimeSpan Run(
	ReadOnlyMemory<byte> memory,
	int testCount,
	int expectedCount,
	int millisecondsTimeout
)

参数

memory  ReadOnlyMemoryByte
待测试的内存块
testCount  Int32
测试次数
expectedCount  Int32
期待测试次数
millisecondsTimeout  Int32
超时时间(毫秒)

返回值

TimeSpan
测试运行的时间差

参见