Chimaera wrote:
How would you be able to modify the program to have multi-way chat and 1 host? I'm trying to get it to be able to have 1 computer to host and have multiple clients connect to the same host but so far it doesn't make sense to me as to how I can get 2+ computers onto the same connection.
it is really easy.. u need to know a bit on networking. well now for this app u cannot use a peer2peer design (actually u can but then it gets Very Complicated). so now u need a client server design.. this way all the clients register themselves with the server (i.e they logon). then the server sends a list of all available contacts (online folks). when a client initiates a conversaion with one of them it really tell the server to notify the other client about it.
from this step onwards u get a choice:
1) send all messages through the server to the other client and visa-versa
2) initiate a direct connection with the other client by using the information provided by the server. then both clients connect to one another..
for a group conversation u'll need to use choice 1 only.
a pooling mechanism is necessary on the server side for choice 1