Question: Users currently do not have usernames. When a user joins the server, they should also send their proposed username, they should send this data in
Users currently do not have usernames. When a user joins the server, they should also send their
proposed username, they should send this data in the form of username newusername eg
username Bob. When the server receives this message, it needs to see if this name is in use. If no
other user is using this name, then let the user know it was a success. If it is already in use, send a
message to the user to tell them it failed. If the user gets a failed message, they should be
disconnected on both client and server side
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
