可可 - NSNetserviceErrorCode = -72003
Hiyee...现在当我尝试连接到域时遇到此错误“ NSNetServicesErrorCode = -72003; NSNetServicesErrorDomain = 10; ”。
我的连接代码:
-(IBAction)connect:(id)sender {
NSNetService *remoteService = servicesController.selectedObjects.lastObject;
remoteService.delegate = self;
[remoteService resolveWithTimeout:30];
}
错误代码:
-(void)netService:(NSNetService *)service didNotResolve:(NSDictionary *)errorDict {
NSLog(@"Could not resolve: %@", errorDict);
}
谢谢
Hiyee...Now I'm having this error " NSNetServicesErrorCode = -72003; NSNetServicesErrorDomain = 10; " when I was trying to connect to a domain.
My Code for connection:
-(IBAction)connect:(id)sender {
NSNetService *remoteService = servicesController.selectedObjects.lastObject;
remoteService.delegate = self;
[remoteService resolveWithTimeout:30];
}
Error Code:
-(void)netService:(NSNetService *)service didNotResolve:(NSDictionary *)errorDict {
NSLog(@"Could not resolve: %@", errorDict);
}
Thankz
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
这是 记录在底层 CFNetwork 库的文档中。 (如果您稍微向上查看页面,您会发现该名称具有您在错误字典中找到的值。)
This is documented in the documentation for the underlying CFNetwork library. (If you look a little bit up the page, you'll see that that name has the value you found in your error dictionary.)
kCFNetServiceErrorInProgress = -72003L
来自 https://developer.apple。 com/documentation/cfnetwork/cfnetworkerrors/kcfnetserviceerrorinprogress
kCFNetServiceErrorInProgress = -72003L
from https://developer.apple.com/documentation/cfnetwork/cfnetworkerrors/kcfnetserviceerrorinprogress