I have a question about the usage of TCPListener in .NET... I am thinking about a client/server application and being new to this kind of application I have search a bit around the web and the solution which come the more often is to create a new thread for each new client connection.
This solution seem fine bu开发者_JAVA百科t I was wondering if it was still usable with a application where you can have thousands of client at the same time ?
Of course if there is thousands of client the application will not be hosted on a small desktop but on a real server, but is it the way to design an application for a large number of client ?
Thank for help.
If i'm making an application (server - client), my first thought is always WCF. From experience i've never had any issues with number of clients connecting.
Here are a few links that might introduce you to it, if you don't know it.
1) MSDN Windows Communication Foundation is...
2) MSDN Windows Communication Foundation
I've made a post a while ago concerning wcf, and there's a sample setup of a server. That might help you.
--> How can i initialise a server on startup?
精彩评论