SuperSocket built-in Flash / Silverlight policy server

Keywords: Policy Server, Flash Policy Server, Silverlight policy server, Policy Server, Flash Policy Server, Silverlight Policy Server

SuperSocket contains a Socket policy server can be used for Flash and Silverlight. It is contained within SuperSocket.Facility.dll this assembly. Therefore, you should enable this policy server, you first need to ensure that the assembly SuperSocket.Facility.dll exists in the directory SuperSocket run, and then add a policy server nodes in the configuration file, the configuration code is as follows:

Flash Policy Server:

<?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="Policy\flash.xml"

                    clearIdleSession="true">

            </server>

        </servers>

    </superSocket>

    <startup>

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

    </startup>

</configuration>

Guess you like

Origin www.cnblogs.com/fanweisheng/p/11127134.html