Skip to content

Instantly share code, notes, and snippets.

@kerryjiang
Last active October 12, 2015 07:48
Show Gist options
  • Save kerryjiang/3994663 to your computer and use it in GitHub Desktop.
Save kerryjiang/3994663 to your computer and use it in GitHub Desktop.
SuperSocket policy server sample configuration
<?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>
<server name="SilverlightPolicyServer"
serverType="SuperSocket.Facility.PolicyServer.SilverlightPolicyServer, SuperSocket.Facility"
ip="Any" port="943"
receiveBufferSize="32"
maxConnectionNumber="100"
policyFile="Policy\silverlight.xml"
clearIdleSession="true">
</server>
</servers>
</superSocket>
<startup>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.0" />
</startup>
</configuration>
<?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"
receiveBufferSize="32"
maxConnectionNumber="100"
policyFile="Policy\flash.xml"
clearIdleSession="true">
<listeners>
<add ip="Any" port="843" />
<add ip="Any" port="9999" />
</listeners>
</server>
</servers>
</superSocket>
<startup>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.0" />
</startup>
<runtime>
<gcServer enabled="true" />
</runtime>
</configuration>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment