var dgram = require("dgram");
var message = new Buffer("hello node js");
var client = dgram.createSocket("udp4");
client.send(message,0,message.length,41234,"localhost",function(err,bytes){
client.close();
});
NodeJS UDP 客户端
最新推荐文章于 2023-09-30 20:44:55 发布