Created
June 9, 2011 09:36
-
-
Save jrom/1016424 to your computer and use it in GitHub Desktop.
Listens to an UDP port and logs received messages
This file contains hidden or 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 server = dgram.createSocket('udp4', function (msg, rinfo) { | |
console.log(msg.toString()); | |
}); | |
server.bind(8125); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment