|
-
Apr 6th, 2011, 09:14 PM
#1
Thread Starter
Member
[RESOLVED] [Winsock] When Client "Ends Process" winsock control does not close
Hi there, I have searched forums to no avail...
I have a Server/Client program to send and receive messages,
Very simply:
- The Client connects to the server fine and can receive and send messages
- If the client form is closed, the server correctly Closes the winsock control
However if the Client opens up Processes from Ctrl+Alt+Del and "Ends Process" on the Client Form, the winsock_Close event DOES NOT get triggered on the Server, therefore still thinking there is a valid connection.
I assumed that even if the Client form was closed even with End Process that the server would call the winsock_Close event as the connection was closed.
No real reason to post any of my code, however just so you are aware, on the server application this is the code that closes the connection:
Code:
Private Sub winsock_Close(Index As Integer)
winsock(Index).Close 'close connection
Unload winsock(Index)
End Sub
Thanks for taking the time to read this, please post any ideas?
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|