zoukankan      html  css  js  c++  java
  • Photon——Application Policy 策略应用

    Application - Policy 策略应用

     
         The Policy Application runs on Photon to send the crossdomain.xml. Web Player platforms like Unity Web Player, Flash and Silverlight request authorization before they contact a server.
         Policy应用运行在Photon上发送crossdomain.xml。Web Player平台请求授权之前他们连接的服务器。
     
         The actual file sent in response to a policy request is loaded from: deploy\Policy\Policy.Application\assets. There is a special file for Silverlight and one for Unity and Flash.
         这文件发送在一个policy请求的响应中。这有一个特殊的文件对于Silverlight and one for Unity and Flash
     

    Configuration 配置

     
         The default setup from the SDK will start the Policy Application. The assemblies, which are in the deploy\Policy folder, and the configuration to load are:
         SDK的默认设置是启动Policy应用的。这个程序集在deploy\Policy 文件夹中,配置如下:
     
    <Applications>
        <!-- [other Application nodes] -->
     
        <!-- Flash & Silverlight Policy Server -->
        < Application
            Name="Policy"
            BaseDirectory="Policy\Policy.Application"
            Assembly="Policy.Application"
            Type="Exitgames.Realtime.Policy.Application.Policy">
        </Application>
    </Applications>

    Ports 端口

     
         Policy requests are usually done behind the scenes on TCP Port 843 and 943 (Silverlight), so these two have to be open as well. This includes Windows Security settings, other Firewalls in software and hardware. If you host Photon in a Cloud, check the Security settings of that as well. Amazon’s EC2 has Security Groups to restrict access to ports.
        Policy 请求通常是在后台TCP端口843和 943(Silverlight),所以这两个端口必须也开启的。这包括 Windows安全设置,其他防火墙软件和硬件。如果你托管在一个Photon云,检查安全设置。亚马逊的EC2有安全组限制端口的访问。
  • 相关阅读:
    IE8下网页中的视频会遮挡住顶层DIV的解决办法
    Synchronized 偏向锁、轻量级锁、自旋锁、锁消除
    Lock的使用
    Synchronized与ReentrantLock区别总结(简单粗暴,一目了然)
    Java线程池 面试题(精简)
    Java 线程池的认识和使用
    bat等大公司常考java多线程面试题
    Java面试题必备知识之ThreadLocal
    阿里面试题
    Spring中Bean的生命周期
  • 原文地址:https://www.cnblogs.com/liusuqi/p/3079731.html
Copyright © 2011-2022 走看看