Session tokens sounds great but I would think there's a lot involved with these. How would one go about learning this? It's implemented in Java?
Dean Hampson wrote:Yeah I could use an object ArrayList that adds the remote socket ip and port every time the user logs in but then I'd have to keep scanning through the ArrayList for the username every time that user chats or enters a chat command.
I'm still missing why you think this is a problem. Sure, a Map would be better, but I don't see why you object to scanning a list.
Dean Hampson wrote:Session tokens sounds great but I would think there's a lot involved with these. How would one go about learning this? It's implemented in Java?
Well, you would build it in to the application protocol which will be used for the client/server communications.
Since your original question was related to sockets, it seems like the client and server will communicate over a network connection. Have you thought about how the client will log-in or chat over the network connection?
You totally ruined the moon. You're gonna hafta pay for that you know. This tiny ad agrees:
Rocket Oven Kickstarter - from the trailbosshttps://coderanch.com/t/695773/Rocket-Oven-Kickstarter-trailboss