Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add user_data parameter to netcode_generate_connect_token
uint8_t * user_data, taken directly from netcode_generate_connect_token_private, is now a part of netcode_generate_connect_token so that creation of user data is exposed to the user. The constant NETCODE_USER_DATA_BYTES is also exposed in netcode.h for the purpose of users knowing how large the user_data array should be. To replace the previous code which was randomly generating 256 bytes for the purpose of connecting, the random user_data generation code has been copy pasted into all the code that previously used netcode_generate_connect_token without the user_data parameter. All tests are passing.
- Loading branch information