【发布时间】:2017-06-05 11:00:24
【问题描述】:
有没有办法在 Linux Ubuntu 上检查 Internet 连接?因为这个只适用于Windows--programmatically check whether my machine has internet access or not
或者使用 Poco 库。
【问题讨论】:
-
this solution 有什么问题,在同一个问题中给出?使用套接字库连接到已知地址。
-
@CodyGray 我们如何实现它?
-
使用套接字库,就像我已经说过的那样。我想这真的是一个“给我的代码”问题。
-
好的。谢谢!我找到了正确答案。
标签: c++ networking poco-libraries