Solved

Winsock Limit in Number Of Connections ??

Posted on 2003-11-24
2
1,214 Views
Last Modified: 2013-11-13
I  have developed a program using winsock.
ie. Winsock on both the server and client.
i am using a winsock array

The job has grown out of proportion to that originally specified.,originally only 300 clients were specified.

I am now told there will be 2000 clients connected to the server( Win2000) (winsock)

I am led to believe that there is a limit of approx 400 clients which may be connected to any one server via winsock.at any one time, for the server to run satisfactorily???

Would appreciate some advice as to the 400 limit, and is there a solution to the problem.
Am i best to stay with winsock, or is there some other way.
I really have to stay with winsock as tghe program is complete and working 100%

I am hoping i will not need multiple servers.


Appreciate any advice that anyone can offer

0
Comment
Question by:turnerrob
2 Comments
 
LVL 7

Accepted Solution

by:
Smallint earned 180 total points
ID: 9817029
VB is not the best choice for such volume in server side. There are some limitations in Winsock API you cannot avoid. Multithreaded C server I think is best solution.

Here you will find a lot of information....

http://tangentsoft.net/wskfaq/index.html


Related with your problem...

http://tangentsoft.net/wskfaq/articles/io-strategies.html

http://tangentsoft.net/wskfaq/advanced.html#maxsockets


Code examples of a multi-threaded server...

http://tangentsoft.net/wskfaq/examples/basics/threaded-server.html


If you want to try VB way here you will find a lot of information too...

http://www.vbip.com/winsock-api/default.asp


Cheers
0
 

Author Comment

by:turnerrob
ID: 9823593
Appreciate the help and links offered.

regards   turnerrob
0

Featured Post

Complete VMware vSphere® ESX(i) & Hyper-V Backup

Capture your entire system, including the host, with patented disk imaging integrated with VMware VADP / Microsoft VSS and RCT. RTOs is as low as 15 seconds with Acronis Active Restore™. You can enjoy unlimited P2V/V2V migrations from any source (even from a different hypervisor)

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Windows Script Host (WSH) has been part of Windows since Windows NT4. Windows Script Host provides architecture for building dynamic scripts that consist of a core object model, scripting hosts, and scripting engines. The key components of Window…
If you haven’t already, I encourage you to read the first article (http://www.experts-exchange.com/articles/18680/An-Introduction-to-R-Programming-and-R-Studio.html) in my series to gain a basic foundation of R and R Studio.  You will also find the …
The goal of the video will be to teach the user the difference and consequence of passing data by value vs passing data by reference in C++. An example of passing data by value as well as an example of passing data by reference will be be given. Bot…
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …

770 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question