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.