jacksonmacd
Programmer
Using the book "High Performance Visual Basic 5 Web Development" by Scott Jarol as the basis to develop a VB6 web server using the Winsock control.
Essentially, I use the Winsock1_ConnectionRequest and Winsock1_DataArrival events to control the program flow. Works great on my Windows 98 development machine, but continually bungs up on its eventual home, a Win2K server. With IE 5 browser, it continually returns the standard "Can't display that page". Under Netscape browser, it says "network connection was dropped by peer". Sometimes, either browser causes a VB error, which I trap in the program and return an "error occurred" page. Arghhhh....
Placed debugging statements in the two events so they log their activity into a text file. I've debugged it to the point where I am convinced that the DataArrival event sometimes fires BEFORE the ConnectionRequest event. That shouldn't ever happen. ConnectionRequest should always precede DataArrival. When the program susequently tries to send some bytws via a socket that hasn't been requested yet, it generates an error that I can trap.
Can anybody shed any light on the subject? What's started out as an interesting learning project has turned into a nightmare!!!
Thx.
Essentially, I use the Winsock1_ConnectionRequest and Winsock1_DataArrival events to control the program flow. Works great on my Windows 98 development machine, but continually bungs up on its eventual home, a Win2K server. With IE 5 browser, it continually returns the standard "Can't display that page". Under Netscape browser, it says "network connection was dropped by peer". Sometimes, either browser causes a VB error, which I trap in the program and return an "error occurred" page. Arghhhh....
Placed debugging statements in the two events so they log their activity into a text file. I've debugged it to the point where I am convinced that the DataArrival event sometimes fires BEFORE the ConnectionRequest event. That shouldn't ever happen. ConnectionRequest should always precede DataArrival. When the program susequently tries to send some bytws via a socket that hasn't been requested yet, it generates an error that I can trap.
Can anybody shed any light on the subject? What's started out as an interesting learning project has turned into a nightmare!!!
Thx.