Please sign in to comment.
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...
Showing with 113 additions and 30 deletions.
Oops, something went wrong.