Lua套接字库能否检测特定端口的连接状态?
- 内容介绍
- 文章标签
- 相关推荐
本文共计391个文字,预计阅读时间需要2分钟。
帮助我追踪特定端口的连接状态:`LISTENING`, `CLOSE_WAIT`, `ESTABLISHED`。我有一个使用`netstat`命令的模拟解决方案:`local command='netstat -anp tcp | find 1926:'`,`local h=io.popen(command, rb)`,`local resu=h.read()`。
本文共计391个文字,预计阅读时间需要2分钟。
帮助我追踪特定端口的连接状态:`LISTENING`, `CLOSE_WAIT`, `ESTABLISHED`。我有一个使用`netstat`命令的模拟解决方案:`local command='netstat -anp tcp | find 1926:'`,`local h=io.popen(command, rb)`,`local resu=h.read()`。

