Mutli-Threading/Sockets Chat Help
How do I make a chat room that multi clients will be connecting to at once. Im trying to add a ping/pong method which is just msgbox that tells the user if the message was received. I know that you need a background worker for this but how do i handle all the msgs that are going back and forth to all the clients that are connected to the server.
Thanks a million!
Re: Mutli-Threading/Sockets Chat Help
You would use the TcpListener and TcpClient classes. There are plenty of examples of their use around so a search will turn them up. The TcpListener explicitly supports asynchronous connections so there's no specific need to use a BackgroundWorker.