-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add more checks to a received connection request packet (#39)
* add try_read method for PrivateConnectToken * add constructor for PrivateConnectTokenAssociatedData * add try_decrypt function * add try_decrypt method for ConnectionRequestPacket * decrypt and check decryption when accepting a ConnectionRequestPacket * check that app_server_netcode_address is in netcode_addresses in private connect token * check if client's netcode_address is already connected * add client_id field to ClientSlot and check if client_id is already connected * add struct ConnectTokenSlot and check for used connect tokens * add try_add! method for adding client slot to room is space is available
- Loading branch information
1 parent
d806a3e
commit fbf6dd2
Showing
3 changed files
with
212 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters