xTohrux
xTohrux

Reputation: 85

Cocoa - NSNetserviceErrorCode = -72003

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

Upvotes: 2

Views: 3986

Answers (2)

Ford
Ford

Reputation: 1485

kCFNetServiceErrorInProgress = -72003L

from https://developer.apple.com/documentation/cfnetwork/cfnetworkerrors/kcfnetserviceerrorinprogress

Upvotes: 0

Peter Hosey
Peter Hosey

Reputation: 96373

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.)

Upvotes: 2

Related Questions