Version 1.3.1 - Compression and Buffer Size Improvements
- Added the DeflaterCompression class for packet compression using DeflaterOutputStream/InflaterOutputStream.
- Updated PacketBuilder to initialize ByteArrayOutputStream and DataOutputStream in the constructor.
- Set a default buffer size of 8192 for Client and Server classes.
- Updated the example file to reflect the changes.
In this release, we introduce the DeflaterCompression class, which allows packets to be compressed using the DeflaterOutputStream/InflaterOutputStream. This helps reduce network bandwidth usage and improves overall performance, especially when dealing with large amounts of data transmission.
We have also made improvements to the PacketBuilder class by moving the initialization of ByteArrayOutputStream and DataOutputStream to the constructor. This change simplifies the packet building process and enhances code readability.
Furthermore, we have set a default buffer size of 8192 for both the Client and Server classes. This default value ensures optimal performance while providing flexibility for users to customize the buffer size according to their specific requirements.
Please note that the example file has been updated to showcase the new features and reflect the latest changes in the library.
We recommend all users of PacketNet to upgrade to this version to take advantage of the packet compression, improved PacketBuilder initialization, and default buffer size enhancements.