• 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>

  • 相关阅读:
    新购服务器流程
    nginx代理证书使用方法
    一键部署lnmp脚本
    mysql主从库配置读写分离以及备份
    Linux入门教程(更新完毕)
    Git 工作流程
    Git远程操作
    常用Git命令
    js数组去重
    Sublime Text设置快捷键让html文件在浏览器打开
  • 原文地址:https://www.cnblogs.com/fanweisheng/p/11127134.html
Copyright © 2020-2023  润新知