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>

  • 相关阅读:
    判断浏览器是否安装ActiveX控件
    浏览器判断及IE版本区分
    获取应用程序根目录
    C#读取csv通用类
    office文档转Txt文档
    合理使用.NET异常处理
    iis操作
    vim配置
    Spring的Annotation使用注意
    JdbcTemplate API备忘
  • 原文地址:https://www.cnblogs.com/fanweisheng/p/11127134.html
Copyright © 2011-2022 走看看