zoukankan      html  css  js  c++  java
  • SuperSocket 中内置的 Flash/Silverlight 策略服务器

    关键字: 策略服务器, Flash策略服务器, Silverlight策略服务器, Policy Server, Flash Policy Server, Silverlight Policy Server

    SuperSocket 包含一个可用于Flash和Silverlight的Socket策略服务器。 它被包含在SuperSocket.Facility.dll 这个程序集内。 因此,你要启用此策略服务器,你首先需要保证程序集SuperSocket.Facility.dll 存在于SuperSocket的运行目录,然后在配置文件中增加策略服务器节点,配置代码如下:

    Flash 策略服务器:

    <?xml version="1.0"?>

    <configuration>

        <configSections>

            <section name="superSocket" type="SuperSocket.SocketEngine.Configuration.SocketServiceConfig, SuperSocket.SocketEngine" />

        </configSections>

        <appSettings>

            <add key="ServiceName" value="SupperSocketService" />

        </appSettings>

        <superSocket>

            <servers>

                <server name="FlashPolicyServer"

                        serverType="SuperSocket.Facility.PolicyServer.FlashPolicyServer, SuperSocket.Facility"

                        ip="Any" port="843"

                        receiveBufferSize="32"

                        maxConnectionNumber="100"

                        policyFile="Policyflash.xml"

                        clearIdleSession="true">

                </server>

            </servers>

        </superSocket>

        <startup>

            <supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.0" />

        </startup>

    </configuration>

  • 相关阅读:
    java表达式, 语句, 块(翻译自Java Tutorials)
    java控制流语句(翻译自Java Tutorials)
    你可以将使用搬到ubuntu上
    python进阶学习笔记(三)
    译:selenium webdriver (python)
    异步调用轻量级封装AsynCaller
    企业开发基础设施--事件通知服务(Remoting双向通信)
    企业开发基础设施--序
    关于跨程序集的反射
    异常处理经验谈
  • 原文地址:https://www.cnblogs.com/fanweisheng/p/11127134.html
Copyright © 2011-2022 走看看