respond to messages with pre-selected binary (and change id)
This commit is contained in:
parent
e16e7efe9e
commit
ed28de4e59
|
@ -2,7 +2,7 @@
|
|||
(function () {
|
||||
'use strict';
|
||||
|
||||
var cli = { port: 65053, address: null, udp6: false, bin: process.argv[2] };
|
||||
var cli = { port: 65153, address: null, udp6: false, bin: process.argv[2] };
|
||||
var dgram = require('dgram');
|
||||
var server = dgram.createSocket({
|
||||
type: cli.udp6 ? 'udp6' : 'udp4'
|
||||
|
@ -41,5 +41,6 @@ server.bind({
|
|||
, address: cli.address
|
||||
});
|
||||
server.on('listening', handlers.onListening);
|
||||
server.on('message', handlers.onMessage);
|
||||
|
||||
}());
|
||||
|
|
Loading…
Reference in New Issue