Created
November 1, 2012 16:07
-
-
Save kerryjiang/3994616 to your computer and use it in GitHub Desktop.
SuperSocket multiple listener configuration sample
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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="EchoServer" serverTypeName="EchoService" maxConnectionNumber="10000"> | |
<listeners> | |
<add ip="Any" port="2012" /> | |
<add ip="IPv6Any" port="2012" /> | |
</listeners> | |
</server> | |
</servers> | |
<serverTypes> | |
<add name="EchoService" | |
type="SuperSocket.QuickStart.EchoService.EchoServer, SuperSocket.QuickStart.EchoService" /> | |
</serverTypes> | |
</superSocket> | |
<startup> | |
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.0" /> | |
</startup> | |
</configuration> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0"?> | |
<configuration> | |
<configSections> | |
<section name="superSocket" type="SuperSocket.SocketEngine.Configuration.SocketServiceConfig, SuperSocket.SocketEngine" /> | |
</configSections> | |
<appSettings> | |
<add key="ServiceName" value="SupperSocketService" /> | |
</appSettings> | |
<connectionStrings/> | |
<superSocket> | |
<servers> | |
<server name="EchoServer" serverTypeName="EchoService" maxConnectionNumber="10000"> | |
<listeners> | |
<add ip="Any" port="2012" backlog="20" /> | |
<add ip="IPv6Any" port="2012" backlog="30" /> | |
</listeners> | |
</server> | |
</servers> | |
<serverTypes> | |
<service name="EchoService" | |
type="SuperSocket.QuickStart.EchoService.EchoServer, SuperSocket.QuickStart.EchoService" /> | |
</serverTypes> | |
</superSocket> | |
<startup> | |
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.0" /> | |
</startup> | |
</configuration> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0"?> | |
<configuration> | |
<configSections> | |
<section name="superSocket" type="SuperSocket.SocketEngine.Configuration.SocketServiceConfig, SuperSocket.SocketEngine" /> | |
</configSections> | |
<appSettings> | |
<add key="ServiceName" value="SupperSocketService" /> | |
</appSettings> | |
<connectionStrings/> | |
<superSocket> | |
<servers> | |
<server name="EchoServer" serverTypeName="EchoService" maxConnectionNumber="10000"> | |
<certificate filePath="localhost.pfx" password="supersocket"></certificate> | |
<listeners> | |
<add ip="Any" port="80" /> | |
<add ip="Any" port="443" security="tls" /> | |
</listeners> | |
</server> | |
</servers> | |
<serverTypes> | |
<add name="EchoService" | |
type="SuperSocket.QuickStart.EchoService.EchoServer, SuperSocket.QuickStart.EchoService" /> | |
</serverTypes> | |
</superSocket> | |
<startup> | |
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.0" /> | |
</startup> | |
</configuration> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment