SuperSocket 1.4 series documentation (15) Enable the built-in Flash/Silverlight policy server in SuperSocket

Source: Internet
Author: User

SuperSocket has a built-in Socket policy server that supports Flash and Silverlight clients. Its implementation code is

SuperSocket. Facility. dll in this assembly. To enable the policy server, first ensure that SuperSocket. Facility. dll exists in the SuperSocket running directory, and then add relevant nodes to the configuration file.

Flash Policy Server

<socketServer>

    <servers>

        <server name="FlashPolicyServer"

                serviceName="FlashPolicyService"

                ip="Any" port="843"

                mode="Async"

                receiveBufferSize="32"

                maxConnectionNumber="100"

                policyFile="Policy\flash.xml"

                clearIdleSession="true">

        </server>

    </servers>

    <services>

        <service name="FlashPolicyService" type="SuperSocket.Facility.PolicyServer.FlashPolicyServer, SuperSocket.Facility" />

    </services>

</socketServer>

Silverlight Policy Server

<socketServer>

    <servers>

        <server name="SilverlightPolicyServer"

                serviceName="SilverlightPolicyService"

                ip="Any" port="943"

                mode="Async"

                receiveBufferSize="32"

                maxConnectionNumber="100"

                policyFile="Policy\silverlight.xml"

                clearIdleSession="true">

        </server>

    </servers>

    <services>

        <service name="SilverlightPolicyService" type="SuperSocket.Facility.PolicyServer.SilverlightPolicyServer, SuperSocket.Facility" />

    </services>

</socketServer>

Note that in the server configuration node, the policyFile attribute is the storage path of your policy file.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.