mduncan8 0 Newbie Poster

I have a C++ program that uses udp to send data to a VB 6 program that is running on the same computer. The VB program requests data from the C++ program. It works but occasionally the VB program throws an error. The error is: "The connection has been reset by the remote host."

The request for data is on a timer. If I set the timer to anything higher that 145 ms is works fine, but I would like to get it faster. I have read that VB will throw this error because the server gets too many connections.

Is there a way to set that maximum number of connections that C++ will accept?

I can post the code that I have if that is necessary (it's a really nasty quick fix).