• <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>

            天行健 君子當自強而不息

            Getting Online with Multiplayer Gaming(8)

             

            Working with Game Servers

            You’ve already read about how simple the server can be. To put theory into practice
            (and help you create your multiplayer games), I put together a server application.
            In this section, you discover how to develop the underlying server-network-game
            architecture and create the server application.

            The game server is basic in nature. You can use the Game Core to handle graphics,
            networking, and input.

            To use theserver application, follow these steps:

            1. Locate the Server application When you open the application, the Configure Server dialog box appears (see Folloing snap).

            The Configure Server dialog box, which appears first
            when you run the server application, enables you to
            select the TCP/IP adapter to use for hosting a game.

            2. In the Configure Server dialog box, select the TCP/IP Adapter that you’ll be
            using to host the game.

            3. Click OK to start the game.

            The Network Server Demo window opens (see Following snap). This window
            displays the server's IP address, number of players, and a list of the players
            connected to the server (if any).

            The Network Server Demo window displays the host’s IP
            address, the number of connected players, and each player’s
            name.

            Players can now connect to the server and play the game. Only eight players
            can join the game at any given time, but you can increase that number in the
            source code.

            4. To close the server (and disconnect all players), press Alt+F4.

            The real work is done behind the scenes where messages are processed, characters
            are moved around, and the entire game world is maintained. The application uses
            a derived cApplication class, named cApp; you see portions of the server’s application
            class throughout this section.

            Skipping the standard application setup functions (such as initializing the graphics
            and input systems), let’s go through the server’s functionality step-by-step, starting
            with handling players.


            posted on 2007-12-18 19:16 lovedday 閱讀(199) 評論(0)  編輯 收藏 引用

            公告

            導航

            統計

            常用鏈接

            隨筆分類(178)

            3D游戲編程相關鏈接

            搜索

            最新評論

            久久亚洲天堂| 精品午夜久久福利大片| 亚洲欧洲久久av| 无码AV中文字幕久久专区| 久久久一本精品99久久精品66 | 99久久无码一区人妻a黑| 久久久久综合网久久| 日韩人妻无码一区二区三区久久99| 少妇精品久久久一区二区三区| 久久精品?ⅴ无码中文字幕| 久久精品国产2020| 久久精品国产亚洲av瑜伽| 久久人人爽人人人人片av| 亚洲午夜精品久久久久久人妖| 亚洲AV无码1区2区久久| 亚洲欧洲久久av| 久久国产高清一区二区三区| 久久午夜伦鲁片免费无码| 青青草国产97免久久费观看| 久久精品成人免费网站| 99久久无码一区人妻a黑| 一本色道久久88—综合亚洲精品| 久久99热这里只有精品国产| 久久亚洲高清观看| 亚洲成色WWW久久网站| 狠狠色噜噜色狠狠狠综合久久| 热RE99久久精品国产66热| 久久亚洲av无码精品浪潮| 99久久免费只有精品国产| 久久久久久久99精品免费观看| 精品国产一区二区三区久久久狼| 人妻无码中文久久久久专区| 亚洲AV日韩精品久久久久久 | 中文字幕精品无码久久久久久3D日动漫 | 人妻无码αv中文字幕久久| 国内高清久久久久久| 久久精品国产2020| 久久A级毛片免费观看| 激情伊人五月天久久综合| 亚洲国产天堂久久综合网站| 久久久综合九色合综国产|