We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
好东西 不过也许搞复杂了 内核有提供网卡连线状态的信息 cat /sys/class/net/eth0/carrier 如果carrier为1表示connect,否则disconnect 这里网卡eth0仅为举例
The text was updated successfully, but these errors were encountered:
我之前也弄了一个C语言版 和你思路一样
Sorry, something went wrong.
感谢提醒,这个信息很有用,有空了我改一版试试
No branches or pull requests
好东西
不过也许搞复杂了
内核有提供网卡连线状态的信息
cat /sys/class/net/eth0/carrier
如果carrier为1表示connect,否则disconnect
这里网卡eth0仅为举例
The text was updated successfully, but these errors were encountered: