Results 1 to 3 of 3

Thread: When a connection is terminated in winsock - is _close ALWAYS fired?

  1. #1

    Thread Starter
    Frenzied Member
    Join Date
    Jul 2003
    Posts
    1,269

    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?

  2. #2
    Lively Member
    Join Date
    Nov 2007
    Location
    Rochester, NY
    Posts
    111

    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.

  3. #3
    I don't do your homework! opus's Avatar
    Join Date
    Jun 2000
    Location
    Good Old Europe
    Posts
    3,863

    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
  •  



Click Here to Expand Forum to Full Width