Network Library

As a three month directed focus study, I implemented a network library using WinSock2. The library features:

  • Packet-based communication over UDP
  • Multiple fire-and-forget channels for unreliable communication
  • Multiple FIFO channels for reliable communication
  • Support for both client-server and peer-to-peer architectures
  • Out-of-sequence (immediate) send/receive support
  • Support for automatically slicing over-sized packets

 

I also developed a simple 2D space shooting game to test and demonstrate the library. The game features mouse tracking for aiming and a high rate of fire to generate traffic, using both reliable and unreliable channels to update game state between clients.