Results 1 to 4 of 4

Thread: forcefully closing a connection to a specific host

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Apr 2002
    Location
    US
    Posts
    64

    forcefully closing a connection to a specific host

    first and foremost, I'm not looking for a way to close an internet connection. I need to get a list of all of the open connections (similar to typing 'netstat -a' on the command line), and then I need to close a specific one. Is there an API or a component that will do this?

    Thanks,
    Chris
    i have a computer.

  2. #2
    Hyperactive Member
    Join Date
    Aug 2002
    Posts
    416
    yes..... iphlpapi.dll is what you wanna use lets you view all open connections and close them. (i think its what netstat uses as well)

    check out www.vbip.com for examples. (look for the GetTcpTable example)

  3. #3

    Thread Starter
    Lively Member
    Join Date
    Apr 2002
    Location
    US
    Posts
    64
    that looks good. thanks
    i have a computer.

  4. #4

    Thread Starter
    Lively Member
    Join Date
    Apr 2002
    Location
    US
    Posts
    64
    after disassembling that dll, I didn't find any exports related to closing a connection. are you sure it lets you close them too? can you find any specific examples?
    i have a computer.

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