Re: Multithreaded TCPClient
Quote:
Originally posted by aspivey
I have setup a simple TCPListener and TCPClient that runs in a background thread on a server app. It works fine and connects correctly to clients and fetches messages. I wish to make this multithreaded so that as each client connects a new thread is created rather than having to wait for the single background thread to finish and process the next connection request.
I have tried several ways to do this and always wind up with a vicious loop of thread creation and no processing.
I would greatly appreciate a pointer to an article or snippet that will get me moving in a positive direction again.
Thx for your help
Archie
:confused:
I believe that I've already responded to this post in another forum and recommended that you use Asynchronus I/O for it but I found a decent set of power point slides on multithreading in the .NET environment so here's the link. http://www.renaissance.co.il/ivbug/m...ithreading.ppt