Skip to content
New issue

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

ping 出错 #10

Open
Daren-Wang opened this issue Oct 24, 2016 · 1 comment
Open

ping 出错 #10

Daren-Wang opened this issue Oct 24, 2016 · 1 comment

Comments

@Daren-Wang
Copy link

ping 出错
#1 try create failed: nodename nor servname provided, or not known

LDSimplePing 的sendPingWithData:方法中的参数断言时总会崩溃(只要地址不可访问都会出现,比如内网ping百度,一段时间后奔溃在这一句)
NSParameterAssert(self.hostAddress != nil);

@hahaGitHub
Copy link

我这里可以ping了。将测试tcp的连接的代码注释掉,只执行 [self pingDialogsis:!_connectSuccess];
另外这个接口中对4个ip进行了ping,根据自己需要ping即可,另外kPingOpenServerIP定义是空串,要注意呢

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants