Engine:Networking:TODO
From Damasca
- Refactor packets to have a separate class for serialising/deserialising packets to an IPacketWriter/IPacketReader - leaving the packets as state-only.
- Registration of packets will need to supply either the serialiser class type, or delegates to the serialise/deserialise function. Using a class has the advantage that attributes can be added to it (e.g. binary packet id), but requires that a contract be followed that is not compiler-enforced. Delegates are the opposite - compiler enforced contract, but no capability for attributes.
- Network code needs to be able to notify the parent application when a connection is unable to cope with the amount of data being pushed to it.
