Networking framework for multiplayer games