ming_node 3.0.0 → 3.0.2
Sign up to get free protection for your applications and to get access to all the features.
- package/beforeTest/a.csv +3 -0
- package/beforeTest/clusterStartTest.js +8 -0
- package/beforeTest/net/TcpClientTest.js +10 -0
- package/beforeTest/net/TcpServerTest.js +16 -0
- package/beforeTest/net/UdpClientTest.js +10 -0
- package/beforeTest/net/UdpServerTest.js +9 -0
- package/beforeTest/readcvv.js +11 -0
- package/beforeTest/restartest.js +1 -0
- package/beforeTest/restartestMain.js +7 -0
- package/beforeTest/static/a.json +3 -0
- package/beforeTest/static/a.json5 +3 -0
- package/beforeTest/test.js +2 -5
- package/index.js +165 -136
- package/module/net/TcpClient.js +64 -0
- package/module/net/TcpServer.js +108 -0
- package/module/net/UdpClient.js +68 -0
- package/module/net/UdpServer.js +64 -0
- package/module/net/es/TcpServer.js +109 -0
- package/package.json +1 -1
- package/utils/common/DataConvert.js +30 -0
- package/utils/nodemon/clusterStart.js +72 -0
package/beforeTest/a.csv
ADDED
@@ -0,0 +1,16 @@
|
|
1
|
+
const TcpServer=require("../../module/net/TcpServer.js");
|
2
|
+
app=new TcpServer()
|
3
|
+
app.listen(9999)
|
4
|
+
|
5
|
+
app.set("connect",(req,res)=>{
|
6
|
+
|
7
|
+
console.log(req)
|
8
|
+
})
|
9
|
+
|
10
|
+
app.set("data",(req,res)=>{
|
11
|
+
|
12
|
+
console.log(req.params+"")
|
13
|
+
|
14
|
+
res.send("123")
|
15
|
+
|
16
|
+
})
|
@@ -0,0 +1 @@
|
|
1
|
+
require("../utils/nodemon/restart")("restartestMain.js","restartestMain.js")
|