I have not been able to find a utility that can do this and am not sure of the best approch. I want to be able to grep all sockets attached to a specific port:
easy with a system(): first nbtstat or netstat to grab a socket report, then grep the socket report based on a given port. However, I am not sure how to kill the socket. netstat does not appear to support this.
Has anyone had any experience with forcing the close of a socket before?
Are there any pitfalls to this?
Should I be trying something else?
Thanks,
Simon
In reply to CLOSE-WAIT sockets by sdyates
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |