Results 1 to 4 of 4

Thread: Closing winsock connection.

  1. #1

    Thread Starter
    New Member Jeff_1's Avatar
    Join Date
    Jan 2001
    Location
    Right behind you.
    Posts
    10

    Question

    Hello all.

    Can i use vb to close a winsock connection that was opened already by a different program?
    Tip of the Day

    Did you know...

    There are no tips available.

  2. #2
    Guest

    Thumbs down

    Sorry, it's not possible
    This feature was supported till the 32 bit version of Windows i.e Windows 95

    Microsoft probally removed this feature to prevent its own socket connections to be lost, jamming the whole operating system.
    (I'm not kidding, it use to happen in Windows 3.11)

  3. #3
    Retired VBF Adm1nistrator plenderj's Avatar
    Join Date
    Jan 2001
    Location
    Dublin, Ireland
    Posts
    10,359
    You could always try killing the process that owns the socket.
    That'd close it

    - jamie
    Microsoft MVP : Visual Developer - Visual Basic [2004-2005]

  4. #4

    Thread Starter
    New Member Jeff_1's Avatar
    Join Date
    Jan 2001
    Location
    Right behind you.
    Posts
    10

    Cool Yeah that is true

    I was just wondering if there was a way to close an open port without closing the whole program that open the port.








    Thanks.
    Tip of the Day

    Did you know...

    There are no tips available.

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