在Flash / ActionScript中可以使用UDP吗? [英] Is it possible to use UDP in Flash/ActionScript?

查看:278
本文介绍了在Flash / ActionScript中可以使用UDP吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

快速的问题:在Flash / ActionScript中可以做UDP数据报套接字吗? 解决方案

当时,答案是否定的。

BinarySocket和Xml Socket都是基于TCP / IP的。 SpliFF提到,Flash 10中主要为Flash Media Server工具和RTMFP添加了UDP。 Adobe Stratus是迄今为止协议的一个例子。 http://labs.adobe.com/technologies/stratus/



然而,目前来自Adobe的UDP样本都是基于对等的。 UDP在P2P中有好处,但在更大规模的多用户或DVE(分布式虚拟环境)中更是如此,因此希望它能够继续关注。

如果你想要一个游戏的UDP,Unity3D目前在网络播放器中支持UDP。或者使用Java的jMonkeyEngine支持它。另外基于Torque 3D的网站也可以支持它。



但是,答案已经变成了yes;看看现在怎么可能,看 ericsoco的回答关于如何使用 DatagramSocket 来实现这一点。


Quick question: is there possibility to do UDP datagram sockets in Flash/ActionScript?

解决方案

At the time of writing, the answer was no.

Both BinarySocket and Xml Socket is TCP/IP based. As SpliFF mentions UDP is being added in Flash 10 mainly for Flash Media Server tools and for RTMFP. Adobe Stratus is an example of the protocol so far. http://labs.adobe.com/technologies/stratus/

However current UDP samples from Adobe are all Peer-to-Peer based. UDP has benefits in P2P but more so in larger scale multiuser or DVEs (Distributed Virtual Environments) so hopefully it is focus going forward.

If you want UDP for a game Unity3D currently supports UDP in the web player. Or jMonkeyEngine using Java supports it. Also Torque 3D web based coming soon may also support it.

However, the answer has since changed to a yes; to see how this is now possible, see ericsoco's answer on how to use DatagramSocket to achieve this.

这篇关于在Flash / ActionScript中可以使用UDP吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆