如何获得一个特定的插槽并关闭它 [英] How to get a specific socket and close it

查看:76
本文介绍了如何获得一个特定的插槽并关闭它的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想关闭套接字这样我就可以重新打开一个相同的端口上,但我不会对套接字句柄。

I want to close a socket so I can reopen one on the same port but I do not have a handle on that socket.

我怎样才能被监听本地主机插座:873将其关闭

How can I get the socket that is listening on localhost:873 to close it?

推荐答案

如果没有一个内核驱动程序,这是不可能的。这是不合法的Windows中抢在另一个进程中的套接字句柄并关闭它主动。

Without a kernel driver this is not possible. It is not legal in Windows to grab a socket handle in another process and close it proactively.

这篇关于如何获得一个特定的插槽并关闭它的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆