Use C# to write something like TCPView

AgentZap

Senior member
Sep 1, 2001
730
0
0
TCPView from sysinternals.com allows you to select a process and close its TCP connection.

I'd like to make a C# program to do the same thing to basically allow me to extend that basic key feature to some other ideas I have.

Is there something simple in the Sockets library like Process.KillConnection or examples anywhere where this has already been done?

Thanks!
 

pcnerd37

Senior member
Sep 20, 2004
944
0
71
I have never needed to do that so I dont know. I would maybe try poking around codeproject.com or ask on their forums. I would say they would be your best bet.
 

Tencntraze

Senior member
Aug 7, 2006
570
0
0
I'd bet that it would be an API call, but I guess it's possible that they would wrap it in some sort of function.

Edit: Found this but I haven't downloaded it so I can't vouch for anything, especially with the super-long domain name. Might be worth a shot :D