Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Winsock Limit in Number Of Connections ??

Posted on 2003-11-24
2
Medium Priority
?
1,237 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 720 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

Vote for the Most Valuable Expert

It’s time to recognize experts that go above and beyond with helpful solutions and engagement on site. Choose from the top experts in the Hall of Fame or on the right rail of your favorite topic page. Look for the blue “Nominate” button on their profile to vote.

Question has a verified solution.

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

How to remove superseded packages in windows w60 or w61 installation media (.wim) or online system to prevent unnecessary space. w60 means Windows Vista or Windows Server 2008. w61 means Windows 7 or Windows Server 2008 R2. There are various …
Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
This tutorial explains how to use the VisualVM tool for the Java platform application. This video goes into detail on the Threads, Sampler, and Profiler tabs.
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…
Suggested Courses

782 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