阅读背景:

没有超级用户访问权限的C ++ ping-like功能

来源:互联网 

I am trying to write a simple C++ ping function to see if a network address is responding. I don't need ICMP specifically, I just need to see if the server is there and responding to anything. I have been doing some research and every solution I come up with requires creating a raw socket or something which requires the program to have sudo access. I won't be able to guarantee that the system I am running this on will be able to modify the network stack, so this is not valid. I am trying to write a simple C++ ping function




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: