
12
Network
Programming
12.1 Network Overview
“Look, good against remotes is one thing. Good against the living? at’s something else.”
—Han Solo
Who are we to argue with Han Solo? Unfortunately, our human opponents are not always
nearby when we want to play against them. If our computer is connected to a network, we
can play against other human opponents who are on the other side of the room or even on
the other side of the world.
In the network world, we hear the terms client and server. With networked games, the
client is the device the player is using, and the server is the device the clients are communi-
cating with. e client accepts input f ...