Connecting to Multiple Clients in a Chat Program
Hey guys, I know this is my first post but I need some help. I did a search and couldn't find quite what i wanted to know.
I want to know how to connect to multiple clients(probably 15-20) in my chat program.
I can't seem to figure out how to make a thread that will create output and input streams for each new thread and then whenever it recieves a message from one of the inputs, outputs it to all the other sockets...
If someone could post some basic code to demenstrate this occuring. Doesn't have to be much but please not too much pseudo-code in it.
Thank you for your help. I am making this as a learning tool to learn how to use sockets and such so I can make another program that has more use in it.