Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Winsock Problem On High End Computer (Server) 1

Status
Not open for further replies.

kennedymr2

Programmer
May 23, 2001
594
AU
I have developed a program using mswinsck.ocx to stand as a server, which will have a large number of clients attached at any one time.
All development has been done on a laptop P4, the program has performed very well and i have had no problems.

BUT

I have now installed my program on a Windows2000 Server, using a high end server (dual processor) (multitread capable)
When i have one client connected , the performance is fine.

When the second client is connected, the first client still performs fine, but the second client just hangs.
I suspect it is blocked!! or something.

Is there another winsock control i can use, or is there a later version !!!

This problem only happens when the server is a high end computer.
On normal p3,p4 computers, it works fine., i have even installed windows 2000 server on one of the "normal" p4's,
works fine.

On the high end server, have turned mutitreading off, no difference to the problem.



I have found some references in microsoft as to winsock not working on some high end servers.
-------------------

Appreciate some advice, the whole thing is becoming URGENT.
 
The Winsock control is fine for small, client-side connections. As you've found, it doesn't do so well in server-side applications. I would investigate making API-level calls to the winsock api. Take a look at for some sample code.

Chip H.


If you want to get the best response to a question, please check out FAQ222-2244 first
 
chiph,
Thanks for your reply, much appreciated.
I have had a lot of trouble finding anyone on the internet with any comments re this particular problem.
Have had a look at the link you mentioned and will have a good look at it., looks like it does cover the problem

Thanks again
 
You can also look at any Unix socket programming book. The Windows Winsock library (wsock32.dll) is based on standard Berkeley Sockets. There are a few differences (Microsoft extensions), but on the whole, the programming techniques will be very similar.

Chip H.


If you want to get the best response to a question, please check out FAQ222-2244 first
 
Also, take a look at SocketWrench (Free) and SocketTools from Catalyst. Even the free version far exceeds the Microsoft winsock control.


This is not meant to discount chiph's suggestions, just another interesting bit of information to add to it. ;-)

[fish] No Dolphins were harmed in the posting of this message... Dolphin Friendly Tuna!

Ever feel like you're banging your head against a tree? I did, so I cut down the tree.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top