Tons of minor fixes
This commit is contained in:
1 parent
873a6fa455
commit
37a6b5d59b
12 files changed
+219
-147
No files matched your search
@@ -1,10 +1,9 @@
|
||||
Make a username -> connectionID dictionary for quick lookups instaed of using foreach loops with breaks.
|
||||
|
||||
1. Allow the server to setup a server name
|
||||
2. Allow the client to setup a user name
|
||||
3. Have the client connect to the server with a welcome packet
|
||||
4. Have the server use the welcome packet to fillout the user information on the server
|
||||
5. Respond to the client from the server with a server list of UDPEndpoints
|
||||
6. Instead of looping through a list of avalible users have a local user dictionary that can be used to lookup clients IPEndPoints
|
||||
|
||||
Test that the datapacket is formatted correctly. The packet size might be off from the actual packet size
|
||||
|
||||
@@ -20,6 +19,22 @@ When user a joins a server
|
||||
The IP gets added to the servers master list
|
||||
The user needs to authenticate for username
|
||||
|
||||
When user leaves a server
|
||||
when the server connection closes
|
||||
Notify all clients to drop the connections
|
||||
Remove the user from the server table
|
||||
Remove the user from the server table
|
||||
|
||||
Use the Server TCP connection to notify all clients when a user disconnects
|
||||
|
||||
|
||||
Connection Flow:
|
||||
1. Connection to server is made working
|
||||
Server object is created working
|
||||
ServerConnection gets added to the Connections table working
|
||||
Server fires user connected event working
|
||||
|
||||
2. User sends an Auth Packet to server working
|
||||
Server responds with Auth sucess or fail and marks the users auth status in the server table. needs work
|
||||
After sucessfull auth share the users IPEndPoint with close connections not started
|
||||
|
||||
3. If the TCP connection closes not started
|
||||
Disconnect the user and tell all clients that the user is gone not started
|
||||
Reference in new issue
Block a user