This commit is contained in:
2023-03-04 16:29:55 +08:00
commit 397ba75479
1007 changed files with 109050 additions and 0 deletions

View File

@@ -0,0 +1,14 @@
package com.jsowell.netty.client;
/**
* 模拟多客户端发送报文
*/
public class TestNettyClient {
public static void main(String[] args) {
//开启10条线程每条线程就相当于一个客户端
for (int i = 1; i <= 300; i++) {
new Thread(new NettyClient("thread" + "--" + i)).start();
}
}
}