I have two applications; a server and a client which use simple TCP Sockets to connect to each other and send the data.
The only problem I have is that I am struggling to associate usernames with the accepted sockets on the server. The server is able to accept and hold multiple socket connections in order for multi-user chat and I have set up a simple string list ready for the usernames but since I am unable to find any socket IDs or such-like, I can't find a way to associate a name with a socket.
I have looked in to socket connected listener or w/e, but even then, I am unable to send username data with the connect method.
Any help is appreciated,