08-27-周三_17-09-29

This commit is contained in:
2025-08-27 17:10:05 +08:00
commit 86df397d8f
12735 changed files with 1145479 additions and 0 deletions

8
node_modules/dnode/example/simple/client.js generated vendored Normal file
View File

@@ -0,0 +1,8 @@
var dnode = require('../../');
dnode.connect(7070, function (remote, conn) {
remote.zing(33, function (n) {
console.log('n=' + n);
conn.end();
});
});

6
node_modules/dnode/example/simple/server.js generated vendored Normal file
View File

@@ -0,0 +1,6 @@
var dnode = require('../../');
var server = dnode(function (remote, conn) {
this.zing = function (n, cb) { cb(n * 100) };
});
server.listen(7070);