Creating a Peer Connection

With the basics of addressing out of the way, we can move on to actually getting a connection made, and really start to network. The types of networking that DirectPlay supports would be peer-to-peer and client/server. In this chapter, we will discuss the peer-to-peer connections.

So what is a peer-to-peer connection? As the name implies, each member (or peer) of a session is connected to every other member (or peer) in the session. For small sessions, this method works quite well. There are many examples of peer-to-peer networks that are quite popular today. Many of the file-sharing programs out there today (Kazaa, Napster, and so on) are peer-to-peer networks.

Before you can begin a peer-to-peer session in DirectPlay, ...

Get Managed DirectX® 9 Kick Start: Graphics and Game Programming now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.