Skip to content

chrisfjones/titanium_module_udp

Repository files navigation

NOTE: Appcelerator now has a titanium udp module and you should use that one instead https://github.com/appcelerator/titanium_modules

UDP send support for Titanium

(ios-only and naive, but it works)

Install

  1. Download a zip
  2. cp chrisfjones.titanium-module-udp-iphone-0.2.zip /Library/Application\ Support/Titanium/

(or wherever your Titanium directory is)

Use

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);

Also, there is a simple udp server in /examples

node example/node_udp_server.js

or, if you're cool:

coffee example/node_udp_server.coffee

Contribute

pretty please

About

Appcelerator now has a titanium udp module and you should use that one instead

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published