I've been trying to determine whether or not Titanium supports - or will, or when it will support - UDP type packets/sockets.
Does anyone know if this is currently possible?
Thanks Doug. I've created a simple module for sending udp via ios at http://github.com/chrisfjones/titanium-module-udp
At present, its a naive implementation but it works for my purposes so far. Feel free to use it or to help out until Appcelerator adds udp support to Titanium core.
it turns out dashes are a big pain, so I had to rename things:
There is a UDP module in the public modules repository now. It supports both iOS and Android, and lets you send packets to specific addresses or broadcast them out. You can also receive packets, and read their data as strings or as a byte array. This was created in the last several weeks, so please bear with any issues mass use uncovers! Feel free to send in pull requests for any fixes or enhancements you want to make to the module. Cheers!
(Note: If you are using Android with Ti SDK 1.7.5 or earlier, you will need to use the apilevel_1 branch of the above repository! The master branch is for 188.8.131.52 with dual runtime (V8 and Rhino) support.)
I would like to know this as well.
I mainly just want to send and receive UDP broadcast packets.
Can we get an update from a Titanium employee on when UDP would be supported? I'm looking to build a mobile app that reports on where the vehicle is currently located, and the messages need to be sent via UDP.
I need udp (both bind and connect) as well
If you need UDP support now, you need to create your own module to do that. That is what I did when I needed the ability to send broadcast UDP datagrams from iOS. My need was very specific so I created only a very small and focused module that is not generic. And I couldn't post it anyway because it was created for client who has rights.
But neither is it all that complicated to roll your own.
The nice thing about Titanium is you never had to hit an absolute brick wall. When it can't do something, you can extend it via modules.
According to the Titanium.Network documentation, UDP is not yet supported.