Solved

Winsock Limit in Number Of Connections ??

Posted on 2003-11-24
2
1,218 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Get 15 Days FREE Full-Featured Trial

Benefit from a mission critical IT monitoring with Monitis Premium or get it FREE for your entry level monitoring needs.
-Over 200,000 users
-More than 300,000 websites monitored
-Used in 197 countries
-Recommended by 98% of users

Question has a verified solution.

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

If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
Q&A with Course Creator, Mark Lassoff, on the importance of HTML5 in the career of a modern-day developer.
This video teaches viewers about errors in exception handling.
The viewer will learn how to clear a vector as well as how to detect empty vectors in C++.

632 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