Original Post
Hello All. I am currently in the process of learning Network code required for my course. And are in the process of creating a basic chat program. I have learnt and used code taken from http://www.gametutorials.com/ and have a simple chat client/server set up. However I have reached a point where my understanding has ended and I need a bit of help. So far my code as it stands, allows any number of Clients to connect to the server. They can send a message to the server, and the server returns the message directly back to the client. However I want this "message" to be sent to all the clients currently connected. I believe my problems comes from the threads that the tutorials uses. The code uses a threads to monitor the port, creating a new one each time a client connects. Handling them through a Mutex. However my problem now comes trying to get the different threads to "talk" to one another. Having never used threads before Im not sure how to acomplish this. Anyhelp with this would be appreciated. -Alex