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

            公告

            導航

            統計

            常用鏈接

            隨筆分類(178)

            3D游戲編程相關鏈接

            搜索

            最新評論

            日本强好片久久久久久AAA | 久久亚洲精品视频| 久久久久久综合一区中文字幕 | 色综合久久88色综合天天 | 国内精品久久久久久不卡影院| 人人狠狠综合久久亚洲高清| 精品伊人久久大线蕉色首页| 久久777国产线看观看精品| 欧美成a人片免费看久久| 亚洲精品tv久久久久久久久 | 久久精品亚洲福利| 精品无码久久久久久午夜| 久久久精品久久久久特色影视| 色欲久久久天天天综合网精品| 91精品国产综合久久四虎久久无码一级| 久久精品无码av| 国产午夜久久影院| 亚洲va久久久噜噜噜久久天堂| 久久99精品九九九久久婷婷| 久久精品天天中文字幕人妻| 亚洲午夜久久久| 久久国产精品一区| 青青草国产成人久久91网| 无码国内精品久久人妻蜜桃| 一级A毛片免费观看久久精品| 91久久九九无码成人网站| 国产精品免费福利久久| 国产毛片欧美毛片久久久| 思思久久99热只有频精品66| 蜜桃麻豆www久久国产精品| 大美女久久久久久j久久| 久久综合九色综合欧美狠狠| WWW婷婷AV久久久影片| 久久久久亚洲精品无码蜜桃| 一本色道久久综合亚洲精品| 国色天香久久久久久久小说| 国内精品久久久久影院老司| 亚洲国产成人精品女人久久久| 日韩AV毛片精品久久久| 久久无码人妻精品一区二区三区| 久久久久国产日韩精品网站|