Tuio Flash Blog
14Feb/106

Little UDP status update

The current svn revision now has UDP support. This only works with the AIR 2 beta and seems to have some problems on MacOSX.

Thanks to Johannes Luderschmidt and Andy McDonald who both sent me UDPConnector implementations pretty much at the same day xD.

Also important to note is that I made some changes to the package structure since the last release so the ASDoc on the Documentation page won't be reliable. Also the ASDoc compiler seems to have a problem with the new DataSocket class which makes the UDP magic even possible so no ASDoc for the svn version :/

To use the new UDPConnector you have to use code as the following

  1. import org.tuio.*;
  2. import org.tuio.connectors.UDPConnector;
  3. [...]
  4. var tc:TuioClient = new TuioClient(new UDPConnector());
  5. var tm:TuioManager = new TuioManager(stage, tc);

Have fun ;)

Comments (6) Trackbacks (0)
  1. I’m getting an error 1017: The definition of base class DatagramSocket was not found. in OSCDatagramSocket.as

  2. What do you use to compile your project?
    You’ll need the flex4sdk beta patched with the air2beta sdk files.
    You can get those at http://labs.adobe.com

  3. Obviously i havent read the post correctly…i think i was too excited about the bottom part ;-) thx for the help!

  4. Hi, thank you for excellent work!
    I just want to say that you can experience some problems, when you try to use UDPConnector on a real network.

    “public function OSCDatagramSocket(host:String = “127.0.0.1″, port:int = 3333)”
    127.0.0.1 – this will not recieve any data. Instead you should change host to your real IP.

    More info here: http://forums.adobe.com/message/2693966

  5. Hi thanks for noting that. The TCPConnector has the same behaviour btw.

  6. I have a problem (described at the following url) with the DatagramSocket class.
    Any sugestion????

    http://www.flashdevelop.org/community/viewtopic.php?f=13&t=7881&hilit=DatagramSocket


Leave a comment


No trackbacks yet.