Skip to content

Commit e229ddc

Browse files
save file
1 parent d7a702e commit e229ddc

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
2+
3+
4+
var net = require('net');
5+
6+
var client = net.createConnection({path:'\\\\.\\pipe\\mypipe'},()=>{
7+
console.log('Connected to C server');
8+
client.write('hello from client');
9+
10+
});
11+
12+
client.on('data',data=>{
13+
console.log('Received:', data.toString());
14+
});
15+
16+
client.on('end',()=>{
17+
console.log('Connection closed');
18+
});
19+
20+

0 commit comments

Comments
 (0)