Hi, I have written a client - server application in VB 6.0 using winsock control. The server has a static IP and the client make a connection to server upon opening the main form of the client application. If for some reason the IP connection is terminated from server than I have to re-start the client in order to re-gain connection with server. Is there any limitation in VB 6.0 that a connection can only be established in the form's load event only or there is some other way of establishing a connection. I don't want to restart my client every time a connection is lost with server. What I want is to check the status of connection before sending the request from client to server and if the connection state is not connected than first establish a connection to server (without reloading the client's main form) and then send the request to server. I have tried this but was unable to make a connection. Can anyone provide me a solution to this problem.
Start Free Trial