Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var dgram = require('dgram');
- var message = new Buffer("Some bytes");
- var client = dgram.createSocket("udp4");
- client.send(message, 0, message.length, 41234, "localhost", function(err) {
- client.close();
- });
Add Comment
Please, Sign In to add comment