I'm trying to use a module for iOS support for UDP, found here:
https://github.com/chrisfjones/titanium_module_udp
I copied the zip file - chrisfjones-titanium_module_udp-fa36dec.zip - to Library/Application Support/Titanium and also added this to my tiapp.xml:
<modules> <module version="0.2">chrisfjones.titanium_module_udp</module> </modules>For sending a udp message, I have the following code:
var udp = require('chrisfjones.titanium_module_udp'); var socket = udp.createUDP(); socket.send("hi", "10.10.11.110", 6100);Which gives me this error:
Couldn't find module: chrisfjones.titanium_module_udp
When I run the project, it unzips the zip in Library/Application Support/Titanium, however it doesn't copy anything to Library/Application Support/Titanium/modules/osx. Any idea what I'm missing? I'm using iOS 4.2 with the latest 1.8 CI build.
2 Answers
Accepted Answer
Try to download the packaged binary instead of the github project:
chrisfjones.titanium_module_udp-iphone-0.2.zip
This should do the magic.
Best Robert
try this... i think this link will give you best understanding..
http://www.titaniumtips.com/files/category-advanced.php
Your Answer
Think you can help? Login to answer this question!