This document provides an overview of networking concepts for game programming, including:
- Latency vs lag and techniques for fighting lag like client-side prediction and interpolation.
- Network stack components like sockets, TCP vs UDP, and IP addressing.
- Procedures for programming sockets in games including initialization, creating sockets, connecting, sending/receiving data, and cleanup.
- Other topics covered include peer-to-peer vs client-server architectures, byte ordering, and demonstrations of networking code in NodeJS, C++, and websockets.
6. Fight Lag
! What is the Cause?
! Slower But Consistent Frame Rate
! Animations
! Client Side Prediction
! Learning Algorithms
! Markov Models
! Artificial Neural Networks
13. Sockets
! Extends Network Layer (Host to Host)
! End – to – End (App to App)
! APIs: WinSock & Berkley (BSD)
14. TCP vs UDP
TCP
! Connection Based
! Delivery Guarantee
! Order Guarantee
! Flow Control
! Duplicates Deleted
UDP
! Connectionless
! No Delivery Guarantee
! No Order Guarantee
! No Flow Control
! Duplicates