- sock = [[ITInetSocket alloc] initWithDelegate:delegate];
- [sock connectWithSockaddrArray:[aNetService addresses]];
+ sock = [[ITInetSocket alloc] initWithDelegate:d];
+ NSLog(@"Detected a service! name %@ type %@",[aNetService name],[aNetService type]);
+ arr = [aNetService addresses];
+ if ([arr count])
+ [sock connectWithSockaddrArray:arr];
+ else
+ NSLog(@"There are no sockaddrs for this service!");