• <ins id="pjuwb"></ins>
    <blockquote id="pjuwb"><pre id="pjuwb"></pre></blockquote>
    <noscript id="pjuwb"></noscript>
          <sup id="pjuwb"><pre id="pjuwb"></pre></sup>
            <dd id="pjuwb"></dd>
            <abbr id="pjuwb"></abbr>
            Fork me on GitHub
            隨筆 - 215  文章 - 13  trackbacks - 0
            <2017年3月>
            2627281234
            567891011
            12131415161718
            19202122232425
            2627282930311
            2345678


            專注即時通訊及網(wǎng)游服務(wù)端編程
            ------------------------------------
            Openresty 官方模塊
            Openresty 標(biāo)準(zhǔn)模塊(Opm)
            Openresty 三方模塊
            ------------------------------------
            本博收藏大部分文章為轉(zhuǎn)載,并在文章開頭給出了原文出處,如有再轉(zhuǎn),敬請保留相關(guān)信息,這是大家對原創(chuàng)作者勞動成果的自覺尊重!!如為您帶來不便,請于本博下留言,謝謝配合。

            常用鏈接

            留言簿(1)

            隨筆分類

            隨筆檔案

            相冊

            Awesome

            Blog

            Book

            GitHub

            Link

            搜索

            •  

            積分與排名

            • 積分 - 215465
            • 排名 - 118

            最新評論

            閱讀排行榜

            Introduction 介紹

             
                 Welcome to the Photon Server documentation. If you are looking for the Photon Cloud documentation, please go over here . —— Photon云文檔
             
                 The documentation is split into three topics: Getting Started, Tutorials, References. Just head over there using the links below and take a look. You will always have quick access to the topics via the navigation menu on the right.
                 分為三部分:開始,教程,參考文獻(xiàn)
             
             
                 If you are completely new to the world of Photon scroll down to the comparison chart below. It will help you to understand the differences and what Photon product better suits your needs.
                 下表是Photon產(chǎn)品比較,便于你選擇更適合的產(chǎn)品
             
            • Photon Server vs. Photon Cloud    Photon服務(wù)器與Photon云
             
                 Photon Server is a On Premise (OnPrem) server application that you can run and host on machines of your choice. Fully customizable and the authoritative control gives you the freedom to configure and set up your own infrastructure for multiplayer enabled applications.
                 Photon服務(wù)器 是一個服務(wù)器應(yīng)用程序,可以在你選擇的機(jī)器上運(yùn)行,并且完全是自定義和權(quán)威性的控制,你可以自由的配置和部署多人應(yīng)用的基礎(chǔ)設(shè)施。
             
                 Photon Cloud is a Software as a Service (SaaS) and as such a fully managed service. You can completely concentrate on your application client while hosting, server operations and scaling is all taken care of in the Photon Cloud.
                 Photon云 是一個軟件即服務(wù)并且是完全的托管服務(wù),你可完全關(guān)注于你的應(yīng)用客戶端,而處理服務(wù)器操作和應(yīng)用擴(kuò)展是由Photon云負(fù)責(zé)。
             
            Photon Cloud 云 Photon Server 服務(wù)器
            Server Administration. Zero server hassle anymore. Sit back and relax while our experts take care of running the servers. 服務(wù)器管理:由云負(fù)責(zé),零麻煩。 You gain full authority of running Photon for your applications. You run your own servers or rent fitting ones and make sure they are available for your users. Photon's logs and performance counters provide all necessary information about low level performance and stability.
            你可以在你的服務(wù)器上運(yùn)行你的應(yīng)用,以確保對于你的用戶是可用的,Photon的日志和性能監(jiān)視器提供了最低水平的性能與穩(wěn)定性的信息。
            Scalability. The Photon Cloud scales automatically to accommodate all your users. Using our SDKs your client application is built for an efficient load balancing workflow. 可擴(kuò)展性:Photon云自動適應(yīng)你所有的用戶,使用我們的sdk客戶端應(yīng)用程序是建立了一個有效負(fù)載平衡的工作流。 Our load balancing power-up is available in source code. It is a solid foundation to scale across multiple servers. Running the right number of servers for your customers is your responsibility.
            在源代碼中我們的負(fù)載均衡是可用的,它是固有的功能可跨越多個服務(wù)器,為你的用戶提供正確數(shù)量的服務(wù)器。
            Licensing. Choose between various subscription models from indie development to enterprise solutions check out our different pricing models now . Why don't you just give it a try? Photon Cloud comes with a free Plan for up to 20 CCU per app . 許可:免費(fèi)版有20個CCU Licenses are bought through the shop and provided as download. Cheaper licenses limit the number of concurrent users per server. Optionally, an Enterprise License is available for any number of servers upon request.
            許可證是通過購買的,并提供下載,便宜的許可證是現(xiàn)在用戶數(shù)量的,而企業(yè)許可證是可提供任意數(shù)量的許可。
            Game logic. All custom logic takes place on the application client to allow a zero-hassle experience.
            游戲邏輯:讓所有在客戶端應(yīng)用上的通用邏輯有一個零麻煩的體驗(yàn)
            The server's logic can be fully customized in C#. Several pre-defined applications are available as source and provide a high performance framework for your application. Benefit from our protocols and abstraction of low level functionality and add any feature you might be missing.
            服務(wù)端的邏輯完全是可定制的C#代碼,有幾個內(nèi)置應(yīng)用可用于擴(kuò)展,并且為你的應(yīng)用提供了一個高性能的框架,得益于我們的協(xié)議和抽象的底層功能,并且可以添加任意的功能。
            Start instantly. Photon Cloud lets you register and immediately run your application. No setup needed. No server needed. 立即開始:Photon Cloud 使你可以注冊并運(yùn)行你的應(yīng)用,并且不需要配置和服務(wù)器設(shè)備。 Once downloaded, start in less than 5 minutes . Photon is easy to setup and runs locally as well as remote.
            下載后,不到5分鐘就可以開始了,Photon是簡單部署就可以運(yùn)行了。
             

            Feature Overview 功能概述

             
                 Photon is a real-time socket server and development framework that is fast, simple to use and flexible. Client SDKs are available for all major platforms:
                 Photon是一個快速、簡單、靈活、實(shí)時的Socket服務(wù)器和開發(fā)框架,客戶端SDK可用于以下平臺:

             

                 The Photon high level architecture looks like this:
                 Photon的高級架構(gòu)體系:
             
             

                 Basic Architecture 基本架構(gòu)

            • The Photon Core is written in native C++ for performance reasons
              • It uses IO Completions Ports (IOCP) for high performance socket handling
              • Implements the heavy “lifting” of the protocols (e.g. reliable UDP)
              • Support relaible UDP, TCP and Web Sockets
                      Photon Core是用C++編寫的,這是出于性能考慮
                           它使用的是完成端口IOCP,用于高性能套接字的處理
                           使用了更好的協(xié)議
                           支持可靠的UDP,TCP和Web Sockets
            • The Core hosts a .NET CLR which runs the business logic in C#
              • Contains the applications running on Photon
              • Written in C# (or any other .NET language)
                      Photon Core 托管著運(yùn)行業(yè)務(wù)邏輯的.NET CLR
                           包括運(yùn)行在Photon上所有的應(yīng)用程序
                           用C#編碼

                 Server Applications (C#) 服務(wù)器應(yīng)用程序

            • We provide several applications as starting point provided in source C# code
              • Lite: Simple and powerful room based game logic
              • LiteLobby: Lobby functionality and room logic
              • Policy: Policy server for Unity3d, Flash and Silverlight
              • LoadBalancing: Load balanced lite scaling across servers (this is powering our Photon Cloud)
                      我們提供了多種應(yīng)用作為開始點(diǎn)
                           Lite:簡單又強(qiáng)大的房間游戲邏輯基礎(chǔ)
                           LiteLobby:大廳功能和房間邏輯
                           Policy:為U3D,F(xiàn)lash,Silverlight提供的策略服務(wù)
                           LoadBalancing:負(fù)載均衡的Lite擴(kuò)展服務(wù)器
            • The apps are tuned for performance and can be used out of the box or extended
                      這些應(yīng)用是性能調(diào)優(yōu)和可擴(kuò)展的
            • Convenient xcopy deploy (automatic or manual restart)
                      方便部署(自動或手動重啟)

                 Protocols 協(xié)議層

            • Photon Core supports the follwoing protocols
              • reliable UDP (based on eNET) and specially tuned for Client-2-Server architectures
              • Binary TCP
              • Web Sockets
                      Photon Core支持以下協(xié)議
                           可靠的UDP(基于eNet),專門針對Client-2-Server架構(gòu)
                           二進(jìn)制TCP
                           Web Sockets
            • Transfer protocol is very lean and slim
                      傳輸協(xié)議很精簡
            • Photon wraps up the networking layer of each client platform
                      Photon包含了網(wǎng)絡(luò)層的每個客戶端平臺
            • Communicate cross-platform and cross-protocol
                      通信是跨平臺和跨協(xié)議的
            • Put your data in hashtables and send it: forget about de-/serialization
                      你的數(shù)據(jù)是放在hashtables中進(jìn)行發(fā)送的,無需序列化和反序列化

                 Server Dev Framework (C#) 服務(wù)器Dev框架

            • All apps sit on top of a development framework that solves common tasks for you
                      置于所有應(yīng)用程序之下的一個開發(fā)框架,為你解決通用的任務(wù)
            • Simple and flexible mapping of RPC calls to operation instances
                      簡單和靈活的映射調(diào)用RPC去操作實(shí)例
            • Messages passing through fibers solve many threading problems
                      信息傳遞是通過線程池來解決多線程的一些問題
            • Designed to saturate bandwidth before the CPU becomes the bottleneck
                      在CPU成為瓶頸之前設(shè)計成飽和帶寬

                 Server Development Tools 服務(wù)器開發(fā)工具

            • Fully running in Visual Studio » F5 » Debug right from your code!
                      完全運(yùn)行在VS上,F(xiàn)5可以進(jìn)行調(diào)試
            • Use all the first class tools from .NET Development
              • Microsoft: Visual Studio
              • Redgate: Memory Profiler, Performance Profiler, Reflector (see here )
              • Jetbrains: ReSharper, dotTrace, dotCover, dotPeek (see here )
                      可使用的工具
                           Microsoft:VS
                           Redgate:內(nèi)存分析、性能分析
                           Jetbrains:ReSharper, dotTrace, dotCover, dotPeek 

                 Data Persistence (DBs) 數(shù)據(jù)持久層

            • Photon does not provide an persistence layer
                      Photon不提供數(shù)據(jù)持久層
            • .NET/Windows supports all major products
                      .NET/Windows提供SQL和NoSQL
            • Usage of ORM (mapping) layers optional
                      可使用ORM(對象關(guān)系映射)

                 Vast Support of Client Platforms 支持的客戶端平臺

             

            • All client platforms interoprate (iOS vs Android vs PC)
                      支持所有的客戶端平臺
            • Major client platforms supported 主要的客戶端平臺
              • Unity3d: Inlcuding Web/Standalone (Win, MAC, Linux), iOS, Android (see here )
              • MAC: iOS (iPad, iPhone), Mac OSX
              • Marmalade: iOS, Android, Bada, LG, BlackBerry (see here )
              • Flash & Air: Browser, Standalone, iOS, Android
              • Windows 8, Windows 7, Vista, XP, Windows Server: Native & .NET
              • Windows Phone 7+
              • HTML5: Javascript
              • Android: Java and native (NDK)
              • .NET
              • Mono(跨平臺的.Net運(yùn)行環(huán)境)

                 Hosting 托管

            • Host Photon with any major provider
              • PaaS: Platform as a Service
              • IaaS: Infrastructure as a Service
                      主要提供者
                           平臺即服務(wù)
                           基礎(chǔ)設(shè)施即服務(wù)
            • Selected providers 可選供應(yīng)商
                           微軟Azure、Leaseweb、SoftLayer、Rackspace、Amazon EC2

                 Support 支持


            Requirements 需求

             
                 For developing and setting up your own server the following additional software is needed:
                 為了開發(fā)和配置你的服務(wù)器,以下軟件是必需:
             

                 Operating System to Run Photon Server 運(yùn)行Photon服務(wù)器操作系統(tǒng)

            • Windows XP, Windows Vista, Windows 7 or Windows 8
            • recommended development OS(開發(fā)環(huán)境系統(tǒng)): Windows 7 x64
            • recommended production OS(生產(chǎn)環(huán)境系統(tǒng)): Windows Server 2008R2 x64

                 .NET Framework & Visual Studio (VS) 開發(fā)環(huán)境

            • Microsoft .NET SDK 3.5 SP1 or .NET SDK 4.0
            • Microsoft VS 2008 or VS 2010
            • recommended: .NET SDK 4.0 & VS 2010

                 Photon Uses the Following Ports for Communication 通信端口

            • UDP: 5055, 5056
            • TCP: 4520, 4530, 4531
            • TCP: 843 for Unity3D Webplayer and Flash Crossdomain requests
            • TCP: 943 for Silverlight Crossdomain requests

            Starting Photon in 5 Minutes 五分鐘內(nèi)開始

             
                 Photon is extremely easy to install and start. The SDK includes ready-to-use binaries which can be up and running within 5 minutes.
                 Photon是非常容易安裝和啟動的,SDK中包含了可用的二進(jìn)制文件,5分鐘內(nèi)即可啟動運(yùn)行

                 Download 下載

                 The Photon Server SDKs are available on our website: www.exitgames.com/Download/Photon

                 Choose Fitting Binaries 選擇裝配的二進(jìn)制文件

             
                 Unzip the files anywhere on your machine. Locate the “deploy” folder and choose the fitting binaries for your system:
                 解壓在你機(jī)器的任何位置,找到deploy文件夾,選擇適合你的二進(jìn)制文件
            • bin_Win32: 32 bit Windows Vista and up
            • bin_Win32_xp: 32 bit Windows XP or 2003
            • bin_Win64: 64 bit Windows Vista and up
            • bin_Win64_xp: 64 bit Windows XP or 2003
             
                 The deploy folder of the SDK contains everything you need to run Photon. Other content of the SDK includes documentation(/doc), libraries(/lib) and source(/src-server).
                 deploy文件夾中包含運(yùn)行Photon的所有東西,另外還有doc、lib、src-server
             

                 Photon Control

             
                 Run Photon using the PhotonControl.exe. This will create a tray bar-icon and -menu to manage Photon.
                 使用PhotonControl.exe運(yùn)行Photon,將創(chuàng)建一個托盤圖標(biāo)和菜單管理Photon
             
             
             
                 Click the white/blue icon and select “Photon” -> “Start as Application” from the menu. Now you have started Photon!
                 點(diǎn)擊該托盤并選擇“Photon”->“Start as Application”,現(xiàn)在你啟動了Photon
             
                 It might take several seconds until Photon is ready to use, depending on the applications it is running.
                 只需幾秒鐘Photon就可以使用了
             
                 When you don’t have a License File yet it will run with a 20 CCU limitation.
                 當(dāng)你沒有許可文件時,也可以運(yùn)行20個CCU
             

                 Starting the Test Client 開始測試客戶端

             
                 The server SDK includes a test client to simulate multiple clients and to generate some load. You can start it from the Photon Control tray bar-menu: “Photon” -> “Run test client”.
                 服務(wù)器SDK包含一個測試客戶端,用于模擬多個客戶端和產(chǎn)生一些負(fù)載,你可以選擇“Photon” -> “Run test client”開始測試
             
                 The test client is a simple console application which will simulate client sessions and games with a few players each.
                 這客戶端是一個簡單的控制臺程序用于模擬多個客戶端的會話和游戲
             
             

               License 許可證

             
                 The License needs to be placed in the same directory from where you start the Photon Control. Make sure that there is only one “.license” file in that directory.
                 許可證需要放置在你啟動Photon Control的目錄中,確保有一個 “.license”文件在目錄中

            posted on 2015-11-25 11:22 思月行云 閱讀(715) 評論(0)  編輯 收藏 引用 所屬分類: Photon
            久久se这里只有精品| 成人综合久久精品色婷婷| 99久久久国产精品免费无卡顿| 97久久天天综合色天天综合色hd | 久久av高潮av无码av喷吹| 中文精品99久久国产 | 亚洲精品tv久久久久久久久久| 2021国产精品久久精品| 精品久久久久久| 久久天天躁夜夜躁狠狠| 亚洲综合久久综合激情久久| 国产精品成人久久久| 国产精品九九久久免费视频| 天天躁日日躁狠狠久久| 无码人妻久久一区二区三区蜜桃| 韩国无遮挡三级久久| 一本一道久久综合狠狠老| 亚洲精品NV久久久久久久久久| 婷婷久久综合九色综合98| 亚洲精品无码久久千人斩| 亚洲国产一成久久精品国产成人综合 | 伊人久久大香线蕉AV一区二区| 免费观看成人久久网免费观看| 人人狠狠综合久久88成人| 久久久午夜精品| 无码任你躁久久久久久| 国产精品嫩草影院久久| 国内精品久久久久| 国内精品久久国产大陆| 国产精品久久久久国产A级| 香蕉久久夜色精品升级完成| 久久久久久久精品妇女99| 2021最新久久久视精品爱| 久久久久香蕉视频| 久久男人中文字幕资源站| 国内精品伊人久久久久影院对白| 久久精品国产免费一区| 欧美久久综合性欧美| 久久av免费天堂小草播放| 久久人人超碰精品CAOPOREN| 日本加勒比久久精品|