From 1c2c9d1f19dd9c3cde2740d9612f18a5ee85b437 Mon Sep 17 00:00:00 2001 From: "H. Cole Wiley" Date: Sat, 3 Mar 2012 22:10:11 -0600 Subject: [PATCH] update to osc.js to work with the current version of node.js --- lib/osc.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/osc.js b/lib/osc.js index 6147a10..51c95b9 100644 --- a/lib/osc.js +++ b/lib/osc.js @@ -1,8 +1,7 @@ -require.paths.unshift(__dirname + '/node-jspack'); +// require.paths.unshift(__dirname + '/node-jspack'); var buffer = require('buffer'); var dgram = require('dgram'); -var sys = require('sys'); - +var sys = require('util'); var jspack = require('jspack').jspack; @@ -151,7 +150,8 @@ var OSCTimeTag = function (time) { var Client = function (port, host) { this.port = port; this.host = host // || '127.0.0.1'; - this._sock = dgram.createSocket(true); + this._sock = dgram.createSocket('udp4'); + return this._sock; } Client.prototype = { send: function (msg) {