2009-11-09 267 views
2

Hiyee ...現在我在嘗試連接到域時出現此錯誤「NSNetServicesErrorCode = -72003; NSNetServicesErrorDomain = 10;」。Cocoa - NSNetserviceErrorCode = -72003

我的連接代碼:

-(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); 
} 

Thankz

回答

2

這是documented in the documentation for the underlying CFNetwork library。 (如果你看一點點的頁面中,你會看到這個名字有你在錯誤的字典中找到的值。)

+0

嗯...我有檢查錯誤代碼的描述... [網絡服務忙,無法處理請求] ...但現在我在解決困難...謝謝你的答覆 – xTohrux 2009-11-09 08:28:43

+0

不,這不是什麼錯誤代碼手段。請參閱我鏈接到的文檔。 – 2009-11-09 09:47:10

+1

有效答案,直到鏈接中斷。 「新搜索無法啓動,因爲搜索已在進行中。」 – 2012-09-20 03:57:33