clientPort = [[NSSocketPort alloc] initRemoteWithTCPPort:SERVER_PORT
host:host];
clientConnection = [[NSConnection connectionWithReceivePort:nil sendPort:clientPort] retain];
clientPort = [[NSSocketPort alloc] initRemoteWithTCPPort:SERVER_PORT
host:host];
clientConnection = [[NSConnection connectionWithReceivePort:nil sendPort:clientPort] retain];
NetworkObject *tempProxy;
BOOL valid;
ITDebugLog(@"Checking for shared remote at %@.", host);
NetworkObject *tempProxy;
BOOL valid;
ITDebugLog(@"Checking for shared remote at %@.", host);
testPort = [[NSSocketPort alloc] initRemoteWithTCPPort:SERVER_PORT
host:host];
testConnection = [[NSConnection connectionWithReceivePort:nil sendPort:testPort] retain];
testPort = [[NSSocketPort alloc] initRemoteWithTCPPort:SERVER_PORT
host:host];
testConnection = [[NSConnection connectionWithReceivePort:nil sendPort:testPort] retain];
ITDebugLog(@"Resolved service named %@.", [sender name]);
[[NSNotificationCenter defaultCenter] postNotificationName:@"ITMTFoundNetService" object:nil];
if ([[NSUserDefaults standardUserDefaults] boolForKey:@"useSharedPlayer"] && !connectedToServer) {
ITDebugLog(@"Resolved service named %@.", [sender name]);
[[NSNotificationCenter defaultCenter] postNotificationName:@"ITMTFoundNetService" object:nil];
if ([[NSUserDefaults standardUserDefaults] boolForKey:@"useSharedPlayer"] && !connectedToServer) {