Hi.

I'm making a chatprogram, and the server creates a thread for each client connected. The server stores these threads in a vector. But how can I remove the thread out of the vector when the thread doesn't exists anymore (when the client has disconnected)?. I know the removeElement function, but how can I check whether the thread exists or not?

Thanks,
Niek