Solved

Winsock Limit in Number Of Connections ??

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

Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

Join & Write a Comment

Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
I was working on a PowerPoint add-in the other day and a client asked me "can you implement a feature which processes a chart when it's pasted into a slide from another deck?". It got me wondering how to hook into built-in ribbon events in Office.
This video teaches viewers about errors in exception handling.
This tutorial will introduce the viewer to VisualVM for the Java platform application. This video explains an example program and covers the Overview, Monitor, and Heap Dump tabs.

747 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now