Commit Graph

9 Commits

Author SHA1 Message Date
ottona 2e938af096 updated readme 2022-12-13 01:32:47 +01:00
rna88 540d682cfc 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 input buffer is not divisible by 16.
* Decompression routine unsets "valid" on receiving zlib error.
2018-03-18 19:00:16 -07:00
rna88 bbc9bb3149 Fix issue with clients not properly disconnecting
When the client program exits it does not end its connection,
which causes the server to leave the connection active
until it times out.

* Provide the disconnect event in the client destructor.
* For easier testing, example 3 client no longer loops infinitely.
2018-03-16 03:40:45 -07:00
rna88 5d4859fff3 Rename examples numerically
Original examples were called Tutorial/Example1/2,
and referring to them numerically is cleaner.
2018-03-16 03:36:19 -07:00
rna88 2b3fdcd44a Fix links in readme 2018-03-16 03:36:01 -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