Chapter 10. Network Programming

 

“…it is important to realize that any lock can be picked with a big enough hammer.”

 
 --Sun System & Network Admin manual

KEY TOPICS

  • How the Internet Really Works

  • The Programmer's Perspective: Sockets

  • Clients

  • A Simple TCP Server

  • Multiclient Servers

  • UDP Servers

  • Preventing Socket Blocks

  • Designing Client-Server Games

  • Massively Multiplayer Games

  • In Closing

Playing against human opponents is more rewarding than playing against a machine or, even worse, playing alone. Games such as football, chess, and hundreds of others teach us how competing against an opponent creates addiction— a desire to play repeatedly, well beyond the shorter entertainment value of automatic opponents.

Ever since the first multiplayer games appeared, their ...

Get Core Techniques and Algorithms in 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.