• <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 閱讀(198) 評論(0)  編輯 收藏 引用

            公告

            導航

            統計

            常用鏈接

            隨筆分類(178)

            3D游戲編程相關鏈接

            搜索

            最新評論

            国产精品9999久久久久| 97久久婷婷五月综合色d啪蜜芽| 国产成人无码久久久精品一| aaa级精品久久久国产片| 国产精品免费久久久久久久久| 久久婷婷色综合一区二区| 久久综合精品国产二区无码| 久久精品无码一区二区app| 亚洲中文字幕无码久久精品1 | 狠狠色综合网站久久久久久久| 久久综合精品国产一区二区三区| 欧美黑人激情性久久| 久久综合九色欧美综合狠狠 | 亚洲一区中文字幕久久| 久久婷婷是五月综合色狠狠| 青青青国产精品国产精品久久久久 | 2020久久精品亚洲热综合一本| 91精品日韩人妻无码久久不卡| 亚洲精品无码久久久影院相关影片 | 久久99久久无码毛片一区二区| 99久久超碰中文字幕伊人| 一本一道久久综合狠狠老| 亚洲国产精品嫩草影院久久 | 97久久天天综合色天天综合色hd | 亚洲一区精品伊人久久伊人| 国产亚洲成人久久| 伊人久久大香线蕉精品| 国产精品一久久香蕉产线看| 久久精品人人做人人爽97| 国产69精品久久久久久人妻精品| 久久精品视频一| 久久乐国产综合亚洲精品| 亚洲欧美成人久久综合中文网| 亚洲欧洲精品成人久久奇米网| 无码人妻久久一区二区三区蜜桃| 色综合久久久久综合99| 亚洲精品无码久久久| 久久AV无码精品人妻糸列| 日韩久久久久久中文人妻| 99国产欧美精品久久久蜜芽 | 久久夜色撩人精品国产小说|