baloney_mahoney
09-18-2003, 09:31 PM
Help me somebody!!!!!!!!!!
I am trying to write a VB application where 1 prog is the server and the other prog is the client.
The server comes up first and sets up his socket like this.....
sckServer.Close
sckServer.LocalPort = 12345
sckServer.Listen
So far no problem....
Then the server launches the client prog like this.....
Ret = Shell("path_of_clinet_prog").
When the client prog gets activated and in the Form_Load sub it does this.....
sckClient.Close
sckClient.Connect sckClient.LocalIP, 12345
Now the problem occurs......everytime it says this.....
"Socket has been reset by the remote host..."
Now, just how and where does the server reset his socket?
The only thing I can think of is that the client cannot establish a connection to the server during load time.
I have used this exact method but after the client was fully loaded and it worked but I need now to do it during client load time.
Is this an impossible task?
I am trying to write a VB application where 1 prog is the server and the other prog is the client.
The server comes up first and sets up his socket like this.....
sckServer.Close
sckServer.LocalPort = 12345
sckServer.Listen
So far no problem....
Then the server launches the client prog like this.....
Ret = Shell("path_of_clinet_prog").
When the client prog gets activated and in the Form_Load sub it does this.....
sckClient.Close
sckClient.Connect sckClient.LocalIP, 12345
Now the problem occurs......everytime it says this.....
"Socket has been reset by the remote host..."
Now, just how and where does the server reset his socket?
The only thing I can think of is that the client cannot establish a connection to the server during load time.
I have used this exact method but after the client was fully loaded and it worked but I need now to do it during client load time.
Is this an impossible task?