Called before the packet is sent over the network.
This function can be defined by derived classes to transform the data before it is sent; this can be used for compression, encryption, etc.
The function must return an array of the modified data, as well as the number of bytes pointed. The default implementation provides the packet's data without transforming it.
Called before the packet is sent over the network.
This function can be defined by derived classes to transform the data before it is sent; this can be used for compression, encryption, etc. The function must return an array of the modified data, as well as the number of bytes pointed. The default implementation provides the packet's data without transforming it.