• <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游戲編程相關鏈接

            搜索

            最新評論

            久久久一本精品99久久精品88| 69久久夜色精品国产69 | 久久免费视频观看| 国产精品久久久久天天影视| 久久w5ww成w人免费| 久久婷婷五月综合成人D啪| 亚洲欧美一区二区三区久久| 久久久久99精品成人片试看| 久久久久国产成人精品亚洲午夜| 久久婷婷色综合一区二区| 99久久99这里只有免费费精品| 国产精自产拍久久久久久蜜| 欧美日韩精品久久免费| 久久狠狠高潮亚洲精品| 手机看片久久高清国产日韩| 69国产成人综合久久精品| 久久亚洲日韩看片无码| 狠狠色丁香婷婷综合久久来来去 | 久久人人爽人人爽人人片AV东京热 | 久久综合久久性久99毛片| 97久久久精品综合88久久| 伊人精品久久久久7777| 日韩欧美亚洲综合久久影院d3| 乱亲女H秽乱长久久久| 久久久久se色偷偷亚洲精品av| 久久这里有精品视频| 国产视频久久| 国产成人AV综合久久| 99久久99久久久精品齐齐| 狠狠综合久久综合88亚洲 | 久久国产亚洲精品| 久久久噜噜噜久久| 精品久久久久国产免费| 久久成人精品视频| 国产一级持黄大片99久久| 97久久久精品综合88久久| 精品国际久久久久999波多野| 国产麻豆精品久久一二三| AV色综合久久天堂AV色综合在| 99久久久精品| 久久精品免费网站网|