闪存套接字策略 [英] flash socket policy

查看:143
本文介绍了闪存套接字策略的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我的irc客户端中使用闪存套接字,除了通过套接字策略文件服务器(没有服务器)之外,我能以某种方式提供套接字策略文件吗?如果我使用Security.loadPolicyFile函数,我不需要任何守护进程,对吗?

解决方案

这是我从使用TCP / IP套接字和XML。我成功地建立了一个带有Flash客户端的Ruby服务器,但想知道更多关于聊天服务器的信息。我希望其中的一些是有帮助的。

您需要一个带有Flash AS3的守护进程。以下是文档。

http://livedocs.adobe.com/flash/9.0/main/wwhelp/wwhimpl/common/html/wwhelp.htm?context=LiveDocs_Parts&file=00000318 .html



alt text http://www.ashcraftband.com/myspace/videodnd/daemonLil.jpg

要创建套接字连接,您必须创建一个服务器端应用程序等待套接字连接请求并发送一个响应到SWF文件。这种类型的服务器端应用程序可以用Java,Python或Perl等编程语言编写。要使用XMLSocket类,服务器计算机必须运行一个守护进程来理解XMLSocket类使用的协议。协议在以下列表中进行了描述:
$ b

•XML消息通过全双工TCP / IP流套接字连接发送。

•每个XML消息是一个完整的XML文档,以零(0)字节结尾。

•可以通过单个XMLSocket连接发送和接收无限数量的XML消息。



了解Flash Player 10中的安全更改

http://www.adobe.com/devnet/flashplayer/articles/fplayer10_security_changes_02.html



< hr>

XML安全策略

 < xml version =1.0?> 
<!DOCTYPE跨域策略SYSTEM
http://www.adobe.com/xml/dtds/cross-domain-policy.dtd\">

< cross-domain-policy>
< allow-access-from domain =*/>
< allow-http-request-headers-from domain =*headers =SOAPAction/>
< / cross-domain-policy>

FLASH客户

记得设置发布设置仅限访问网络


$ b 服务器

为安全策略打开一个单独的端口,并保持其运行在后台。


Using flash sockets in my irc client, can I serve the socket policy file somehow other than thru socket policy file server (without server)? If I use the Security.loadPolicyFile function, i do not need any daemon, right?

解决方案

This is what I know from using TCP/IP Sockets and XML. I've set up a Ruby server with a Flash client successfully, but want to know more about chat servers. I hope some of this is helpful.

You need a Daemon with Flash AS3. Here's the documentation.
http://livedocs.adobe.com/flash/9.0/main/wwhelp/wwhimpl/common/html/wwhelp.htm?context=LiveDocs_Parts&file=00000318.html

alt text http://www.ashcraftband.com/myspace/videodnd/daemonLil.jpg

To create a socket connection, you must create a server-side application to wait for the socket connection request and send a response to the SWF file. This type of server-side application can be written in a programming language such as Java, Python, or Perl. To use the XMLSocket class, the server computer must run a daemon that understands the protocol used by the XMLSocket class. The protocol is described in the following list:

• XML messages are sent over a full-duplex TCP/IP stream socket connection.
• Each XML message is a complete XML document, terminated by a zero (0) byte.
• An unlimited number of XML messages can be sent and received over a single XMLSocket connection.

Understanding the security changes in Flash Player 10
http://www.adobe.com/devnet/flashplayer/articles/fplayer10_security_changes_02.html


XML SECURITY POLICY

<?xml version="1.0"?>
<!DOCTYPE cross-domain-policy SYSTEM
"http://www.adobe.com/xml/dtds/cross-domain-policy.dtd">

<cross-domain-policy>
<site-control permitted-cross-domain-policies="master-only"/>
<allow-access-from domain="*"/>
<allow-http-request-headers-from domain="*" headers="SOAPAction"/>
</cross-domain-policy>

FLASH CLIENT
Remember to set Publish Settings to Access Network Only.

SERVER
Open a separate port for security policy, and keep it running in the background.

这篇关于闪存套接字策略的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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