Hi i got a multi user chat client, but now i'm trying to implemented a nickname lis, i tried adding a second winsock with different code then the chat prog. But figured out by just using one winsock.

The thing is when the winsock client connect it send to the server his nickname, now when the server get it it send to all the client the nickname and the socket their connect it.
Exemple:
client send : "Bob"
Server get's : "Bob"
Server add next available socket to the nickname, so if socket 5 is available then it would be: "Bob (5)"
Server send it
Client get it: "Bob (5)" and add to the nickname list.
*This is how far i went

Now that what i try to do and i got it (if their something similar you could refer it would be also helpful). Another prob i try to figure out is if a person signed out or close connection then his nickname will be remove from the list.

Thank you for your help.