我喜欢为游戏实现 Flex 到服务器彗星/长轮询 [英] I like to implement Flex to Server comet / long polling for games

查看:25
本文介绍了我喜欢为游戏实现 Flex 到服务器彗星/长轮询的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要尝试将 80 端口 flex 游戏实现到服务器方法.

I need to try and implement port 80 flex games to server method.

我想问一下是否有人之前已经这样做了,或者是否可以使用长轮询/彗星服务器管理 flash/flex 多用户游戏?

I like to ask if someone already did it before or it is possible to manage flash/flex multi user games with long polling / comet server ?

推荐答案

当然有可能.我建议使用 URLStream(提供低级访问从 URL 下载数据)以在客户端接收数据,因为大多数其他方法要么不会连续提供下载的数据(各种加载器),要么在代理(套接字)方面存在问题.请注意,URLStream 为您提供二进制数据.使用 ProgressEvent.PROGRESS 事件连续接收数据.

Of course it is possible. I'd suggest using URLStream (which provides low-level access to downloading data from URL) to receive data on client, since most other methods either do not give you downloaded data continuously (various Loaders) or have problems with proxies (Sockets). Note that URLStream gives you binary data. Use ProgressEvent.PROGRESS event to receive data continuously.

这篇关于我喜欢为游戏实现 Flex 到服务器彗星/长轮询的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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