James H. H. Lampert wrote:
Anybody know an easy way to programmatically kill all established
connections (but not the listening socket) on a given TCP port?

I took a peek at the source for the linux 'netstat' command and couldn't make heads or tails of it. I was hoping there is an API you can call to get the information.

But this is basically what you probably are looking for.

david


This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2026 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.