Skip to content

Instantly share code, notes, and snippets.

Avatar
🏠
Working from home

Rémy HUBSCHER Natim

🏠
Working from home
View GitHub Profile
View client.js
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,
You can’t perform that action at this time.