Programming a chat room... - Programmers Heaven

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!


Welcome to the new platform of Programmer's Heaven! We apologize for the inconvenience caused, if you visited us from a broken link of the previous version. The main reason to move to a new platform is to provide more effective and collaborative experience to you all. Please feel free to experience the new platform and use its exciting features. Contact us for any issue that you need to get clarified. We are more than happy to help you.

Programming a chat room...

YnotYnot Posts: 113Member
[b][red]This message was edited by Ynot at 2003-9-7 7:22:25[/red][/b][hr]

I'm in the process of [b]trying[/b] to program a chat room. But having absolutely no idea about how to go about it [b]properly[/b].

I've gotten a server to accept connections, and to accept messages from any number of connected clients, but I don't have a clue of how to forward the messages to every running client. I tried putting the client info into an array, but the array never seems to be updated.

Could anyone point me to a good resource that would clearly outline the theory behind writing a chatroom? Or maybe, if possible you could post that up here?

Thanks for your help,


Sign In or Register to comment.