mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-04-22 12:05:05 +08:00
commit
This commit is contained in:
@@ -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();
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user