I came across this example of a chat app here...
http://www.daniweb.com/forums/thread59565.html
and am having trouble creating the multiple client part that is mentioned at the bottom...
If you want it to support multiple clients then put the TcpListener into an infinite loop in another thread etc.
I was wondering if you could tell me how to achieve this. I have a rough idea I would lay it out like this..
for (; ; )
{
TcpListener server = new TcpListener(IPAddress.Parse("127.0.0.1"), 8100);
//server.Start();
new Thread(new ThreadStart(server.Start));
}
But as of yet Its not working.
Any help would be appreciated.