NetworkManager

The NetworkManager is what’s responsible for handling everything related to the network packets, it’s core interface revolving around the SocketObject that implements Winsock2. From connecting & establishing, disconnecting and dispatching the received messages to the messaging interface to allow for handling of those messages. Also, for being able to insert particular messages into the send queue from another network component within the engine. It’s architecture maintains a multi-threaded send & receive system to allow for continuous non-blocking execution.

Here’s how I’m inserting packets for sending over the network:

Here’s how I’m receiving network messages and then dispatching through the event system:

Leave a Reply

Your email address will not be published. Required fields are marked *