NOTE: Appcelerator now has a titanium udp module and you should use that one instead https://github.com/appcelerator/titanium_modules
- Download a zip
cp chrisfjones.titanium-module-udp-iphone-0.2.zip /Library/Application\ Support/Titanium/
(or wherever your Titanium directory is)
Add this to your tiapp.xml
<modules>
<module version="0.2">chrisfjones.titanium_module_udp</module>
</modules>
And this to your app
udp = require('chrisfjones.titanium_module_udp');
socket = udp.createUDP();
socket.send("hi", "127.0.0.1", 6789);
node example/node_udp_server.js
or, if you're cool:
coffee example/node_udp_server.coffee
pretty please