Results 1 to 5 of 5

Thread: winsock help

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Nov 2002
    Posts
    216

    winsock help

    it keeps on putting this error (in yellow of course)

    --> WinSockCtl.Close

    why is that? do i need to post the code?

  2. #2
    Good Ol' Platypus Sastraxi's Avatar
    Join Date
    Jan 2000
    Location
    Ontario, Canada
    Posts
    5,134
    Yes, you should But, I think Winsock would want you to wait for it to finish executing (check its state in a loop, like Do... Loop Until Winsock.State = whatever) before you close it.
    All contents of the above post that aren't somebody elses are mine, not the property of some media corporation.
    (Just a heads-up)

  3. #3

    Thread Starter
    Addicted Member
    Join Date
    Nov 2002
    Posts
    216
    still doesnt work... but what should i put for ' whatever '

  4. #4

    Thread Starter
    Addicted Member
    Join Date
    Nov 2002
    Posts
    216
    bump....... cmon guyss

  5. #5
    New Member
    Join Date
    Oct 2002
    Location
    Toronto, Ontario, Canada
    Posts
    1
    Code:
    winsock1.disconnect    'will take care of what you want.
    
    winsock1.state = 0      'means closed
    winsock1.state = 7      'means unused (disconnected)

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