|
-
Nov 20th, 2007, 03:48 AM
#1
Thread Starter
Frenzied Member
When a connection is terminated in winsock - is _close ALWAYS fired?
Anyone know? For errors, or connections closed by the server or the client, timeouts, etc.. does the _close always fire?
-
Nov 20th, 2007, 03:51 AM
#2
Lively Member
Re: When a connection is terminated in winsock - is _close ALWAYS fired?
It should, if not, you can use the 'Winsock.State <> sckClosed' function to check it on error, or whatever else you need it for.
Please use the search function prior to posting a question and see if someone's already answered it.
-If I helped you, please rate me, as I'd do the same for you =)
-Remember to select the Resolved option for your post when you've gotten the answers you need.
-
Nov 20th, 2007, 07:33 AM
#3
Re: When a connection is terminated in winsock - is _close ALWAYS fired?
I don'T think you will get an _close in any case.
Because of that reason you should always check the state of a connection before using it like:
Code:
If Winsock.State <> sckClosed Then
Winsock.Close
End If
You're welcome to rate this post!
If your problem is solved, please use the Mark thread as resolved button
Wait, I'm too old to hurry!
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
|