Commit Graph

7 Commits

Author SHA1 Message Date
rna88 967378ae98 SInPacket now tracks decryption/decompression failure.
Previously there was no way to tell if an incoming packet was
incorrectly formatted. The new function SInPacket.isValid()
can be called after decryption/decompression to determine if
the packet wasn't decrypted and/or decompressed properly.

* Added "valid" attribute to SInPacket.
* Decryption routine unsets "valid" if buffer is not divisible by 16.
* Decompression routine unsets "valid" on receiving zlib error code.
2018-03-15 20:12:33 -07:00
rna88 bcdf5b317c Cleaned up some minor details with examples. Added port specification in server/client creation. 2018-03-14 00:38:54 -07:00
rna88 f9b49365c0 Fixed issues with CNetManager::getPeerCount() returning incorrect number of peers. 2018-03-13 17:11:08 -07:00
rna88 fe00af35d2 Fixed issue with clients not properly ending their connection after being destroyed. Removed git tracking of compiled binaries/library. 2018-03-12 23:53:10 -07:00
rna88 73c54c580d Reorganizing examples. 2018-03-11 05:05:43 -07:00
rna88 4e5b5abd6f Fixed links in readme. 2018-03-10 20:10:07 -08:00
rna88 18b7ce6bc9 Initial commit. 2018-03-10 20:07:10 -08:00