MCPcopy Create free account
hub / github.com/e2wugui/zeze / Test2

Method Test2

Draft/Program.cs:33–46  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

31 public class Program
32 {
33 public static void Test2()
34 {
35 var so = new TcpSocket(new Service("connector"), "127.0.0.1", 9999);
36 so.SetOutputSecurityCodec(new byte[]{1}, 1);
37 var r = new Random(1234);
38 var s = new byte[1024 * 1024 * 2];
39 for (;;)
40 {
41 for (int i = 0; i < s.Length; i++)
42 s[i] = (byte)r.Next(16);
43 Console.WriteLine(so.Send(s));
44 Thread.Sleep(1000);
45 }
46 }
47
48 public static void Test1()
49 {

Callers

nothing calls this directly

Calls 3

NextMethod · 0.45
SendMethod · 0.45

Tested by

no test coverage detected