Send Message Client to Client Via Server
Hi,
I am trying to create Messenger similar to msn but very simple.
I have managed to create some parts of it after nonstop day night reading up on sockets, and threading etc.. so so far i have a Server + ServerThread and Client class, which is capable of:
* Server that can accept multiple client connections.
* Each client can send message to the server Only
Thats all so far but I do intend to
* Make Client send Client messages via the Server <-- Next Important Step
* Add and Remove Users (User Lists)
Lets say I have a Server (S) and Clients (C1) and (C2)
at the moment both C1 and C2 can connect to S and send messages to it only.
How can I, or what would I need to do so that I can make C1 and C2 actually send each other messages? I understand I may need the server to somehow get the messages recieved from C1 and C2 and send them to one another?
Do correct me in my assumptions or methods I am using, as you may know better methods or techniques to use to implement what I need to do.
Thanks
QTQ
P.S If you need anymore information in regards to this or have any questions, please do ask.

