开发者

Is there a way to check if my proxy is online?

开发者 https://www.devze.com 2023-02-20 14:07 出处:网络
I need to know if I can access internet from my proxy, I\'m doing this now: if((system(\"wget -q www.g开发者_JAVA技巧oogle.it -O /dev/null\")); // I don\'t have access.

I need to know if I can access internet from my proxy, I'm doing this now:

if((system("wget -q www.g开发者_JAVA技巧oogle.it -O /dev/null")); // I don't have access.

Is there a better way to solve this problem? Is there a function in C?

Thank you very much.


Everyone loves this guide.

http://beej.us/guide/bgnet/

It'll help you learn how to get to grips with networking programming in C very easily.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号