This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var dgram = require('dgram'); | |
var socket = dgram.createSocket('udp4'); | |
//var testMessage = "[hello world] pid: " + process.pid; | |
var message = new Buffer([0x65, | |
'I', 'P', 'A', 'D', 0x00, | |
'N','A', 'M', 'E', 0x00, | |
'J', 'S', 'O', 'N', 0x00, | |
'V', 'E', 'R', 'S', 0x00, | |
'U', 'U', 'I', 'D', 0x00, |