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
-
import org.tuio.*;
-
import org.tuio.connectors.UDPConnector;
-
[...]
-
var tc:TuioClient = new TuioClient(new UDPConnector());
-
var tm:TuioManager = new TuioManager(stage, tc);
Have fun
February 23rd, 2010 - 15:32
I’m getting an error 1017: The definition of base class DatagramSocket was not found. in OSCDatagramSocket.as
February 23rd, 2010 - 20:55
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
February 24th, 2010 - 11:17
Obviously i havent read the post correctly…i think i was too excited about the bottom part
thx for the help!
June 3rd, 2010 - 21:14
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
June 3rd, 2010 - 22:13
Hi thanks for noting that. The TCPConnector has the same behaviour btw.
January 30th, 2011 - 02:45
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