Commits

Tuukka Norri committed 294a716

Even more logging

Comments (0)

Files changed (1)

Sources/PGTSConnector.m

 static void 
 HostReady (CFHostRef theHost, CFHostInfoType typeInfo, const CFStreamError *error, void *self)
 {
+	BXLogDebug (@"CFHost got ready.");
 	[(id) self continueFromNameResolution: error];
 }
 
 		[self removeHost];
 		mHost = CFHostCreateWithName (NULL, (CFStringRef) name);
 		status = CFHostSetClient (mHost, &HostReady, &ctx);
+		BXLogDebug (@"Set host client: %d.", status);
 		CFHostScheduleWithRunLoop (mHost, runloop, kCFRunLoopCommonModes);
 		
-		BXLogDebug (@"Starting host info resolution.");
-		if (! CFHostStartInfoResolution (mHost, kCFHostAddresses, &mHostError))
+		status = CFHostStartInfoResolution (mHost, kCFHostAddresses, &mHostError);
+		BXLogDebug (@"Started host info resolution: %d.", status);
+		if (! status)
 			[self continueFromNameResolution: &mHostError];
 	}
 	else