...
The diagram above shows the high level actions that takes place on a server when it receives data from a client. First the Server reads in the data. It creates a packet (determining the type for specialization). Once the packet is fully read in and created, the Server calls the handle method on the packet. The handle method determines what actions need to be applied. The packet can also define interfaces that enable specific actions to happen on the client or server which is known as a callback.
...
Jeremy Symon I am not sure I have got this correct, but its my understanding that a callback only allows the Packet a mechanism to do some action on the client/server that the packet is decoded on.
Meaning, if a client sends a login packet to the server, the server could have a callback that checks for the client's credentials. It doesn't mean that the server will send data back to the client right? Apart of the initial callback though, the server could send a new packet to the client right?
...
A Packet can also define a response field. The response field allows for a packet to be sent back to the origin of the packet.