Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Winsock Problem
Message
From
14/05/2003 12:41:22
 
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Miscellaneous
Thread ID:
00788082
Message ID:
00788250
Views:
21
Can you post the code for the pc that hangs?

I have seen one work which on the server side puts the winsock server in a 'waiting for a connection' lor listening loop using .listen()), once a connection is handled and as soon as the server sends the file to the client using .senddata the server side uses the sleep API to wait for a second: Sleep(1000) and then issues .close() followed by a .listen() to wait for new connections. All this is on the server side, not the client. The server actually closes before the client does because the client is still receiving data.

>I have just finished a completed a small program for my applcation. This program consists of a winsock server and a client. I am using this the client and server connection to transfer data from one pc to another. (The data i am transferring are tables in xml format). Now my problem is not transferring the data or connecting the two pcs together. My problem is that when i issue the command oWinsock.Object.Close() the connection is closed on that pc but the other pc which has the connection hangs up. It 's like it is trying to re-establish the connection. I don't know what i am doing wrong.
>
>Does anyone have any idea how to disconnect the pcs without having any troubles. Maybe i am missing something but this looks like a strange problem. It's moreover a problem cause i cannot debug the application cause it will hang as soon as the command close is issued.
.·*´¨)
.·`TCH
(..·*

010000110101001101101000011000010111001001110000010011110111001001000010011101010111001101110100
"When the debate is lost, slander becomes the tool of the loser." - Socrates
Vita contingit, Vive cum eo. (Life Happens, Live With it.)
"Life is not measured by the number of breaths we take, but by the moments that take our breath away." -- author unknown
"De omnibus dubitandum"
Previous
Reply
Map
View

Click here to load this message in the networking platform