Microsoft DirectX 8.1 (C++)

SimpleClientServer

The SimpleClientServer sample is a simple client/server application. It is similar in form to SimplePeer but uses the client/server interfaces. When the user presses Wave to other players, the game passes a single Microsoft® DirectPlay® message to all connected players.

Path

Path: (SDK root)\Samples\Multimedia\DirectPlay\SimpleClientServer

Executable: (SDK root)\Samples\Multimedia\DirectPlay\Bin

User's Guide

To run the game, do the following:

  1. Start the SimpleServer by double-clicking the SimpleServer icon in the Bin folder.
  2. Change the port if desired, and click Start Server.
  3. Start the SimpleClient by double-clicking the SimpleClient icon in the Bin folder.
  4. Enter the player's name.
  5. Type the IP address, or leave it blank to search the local network.
  6. Click Start Search.
  7. Click Join when a session appears.

The game begins immediately after it has been created. Other players can join the game at any time.