Commit Graph

22 Commits

Author SHA1 Message Date
ottona 168f605620 merge readme update 2022-12-13 01:48:40 +01:00
ottona 2e938af096 updated readme 2022-12-13 01:32:47 +01:00
Otto Naderer 43d8801e71 merge fix for windows cmake cfg 2022-06-08 01:30:10 +02:00
Otto Naderer 0a39403f8d fixes to cmake cfg windows 2022-06-08 00:38:01 +02:00
Otto Naderer 8e5d81f913 cmake op for native irrlicht 2022-06-07 22:01:26 +02:00
Otto Naderer fb0b8cee79 Merge branch 'master' into dev 2022-06-07 17:52:34 +02:00
Otto Naderer ed8345550f added quaternions to packet structures 2022-06-05 14:31:52 +02:00
Otto Naderer 1887c702c4 init cmake 2022-04-28 00:14:10 +02:00
rna88 ca1e18cf3c Merge with dev for 2.1.1 version
* Added changelog.
2018-03-20 00:48:19 -07: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 6d1baf249b Clean up some minor details with the examples
* Change some of the stdout messages to prevent confusion.
* Add port specification in server/client creation.
2018-03-16 04:13:24 -07:00
rna88 85822e682e Fix getPeerCount() to return correct number of peers
Calling getPeerCount() used to return the maximum number
of peers on the host, no matter how many peers were actually
connected. Changing this function to count the elements within
the "players" vector returns the correct peer count.

However calling getPeerCount() within the "onDisconnect" callback
results in an extra peer being present due to the "players"
vector only being updated *after* the callback invocation. Hence
the "onDisconnect" callback is now invoked after the disconnecting
peer is removed from the vector.

* Count peers by looping through the "players" vector.
* Move invocation of "onDisconnect" callback to after peer is deleted.
* Add getPeerCount() calls to example 3 to illustrate use.
2018-03-16 04:07:50 -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 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