Solved

Winsock Limit in Number Of Connections ??

Posted on 2003-11-24
2
1,215 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

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
MS Date Picker 64 bit 32 bit issue 12 61
VBA: Personal Macro Retain/Highlight/Remove values in a selected column 4 33
Problem to App 4 98
Problem to Alipay 10 45
This article will show, step by step, how to integrate R code into a R Sweave document
This article describes some techniques which will make your VBA or Visual Basic Classic code easier to understand and maintain, whether by you, your replacement, or another Experts-Exchange expert.
The goal of the video will be to teach the user the concept of local variables and scope. An example of a locally defined variable will be given as well as an explanation of what scope is in C++. The local variable and concept of scope will be relat…
The viewer will learn how to pass data into a function in C++. This is one step further in using functions. Instead of only printing text onto the console, the function will be able to perform calculations with argumentents given by the user.

830 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