在 Windows Azure 中运行SuperSocket

本文介绍了微软的云计算平台WindowsAzure及其如何为互联网上的应用程序提供高可靠性和可扩展性的计算和存储服务。同时,详细解释了如何在WindowsAzure上配置SuperSocket,包括使用app.config文件进行设置。

关键字: Windows Azure, WorkRole, InputEndPoint, 云计算, 微软云

什么是 Windows Azure?

Windows Azure 是微软的云计算平台!微软的Windows Azure通过它的数据中心提供了按需分配的计算能力和存储空间用于在互联网上托管,扩展和管理应用程序。

这些在 Windows Azure 上运行的应用有很高的可靠性和可扩展能力。基于SuperSocket开发的服务器程序一样也能够很方便的运行在 Windows Azure 平台上。

SuperSocket 配置

用于在 Windows Azure 上运行的配置文件 app.config 和直接运行的SuperSocket的配置文件相同。

<?xml version="1.0" encoding="utf-8" ?>

<configuration>

  <configSections>

    <section name="superSocket" type="SuperSocket.SocketEngine.Configuration.SocketServiceConfig, SuperSocket.SocketEngine"/>

  </configSections>

  <superSocket>

    <servers>

      <server name="RemoteProcessServer"

          serverTypeName="remoteProcess"

          ip="Any" port="2012" />

    </servers>

    <serverTypes>

      <add name="remoteProcess"

       type="SuperSocket.QuickStart.RemoteProcessService.RemoteProcessServer, SuperSocket.QuickStart.RemoteProcessService" />

    </serverTypes>

  </superSocket>

  <system.diagnostics>

    <trace>

      <listeners>

        <add type="Microsoft.WindowsAzure.Diagnostics.DiagnosticMonitorTraceListener, Microsoft.WindowsAzure.Diagnostics, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"

        name="AzureDiagnostics">

        </add>

      </listeners>

    </trace>

  </system.diagnostics>

</configuration>

转载于:https://www.cnblogs.com/fanweisheng/p/11127199.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值