1.1 --- a/TCP/TCPConnection.m Tue Apr 28 10:36:28 2009 -0700
1.2 +++ b/TCP/TCPConnection.m Tue May 05 23:24:50 2009 -0700
1.3 @@ -8,6 +8,7 @@
1.4
1.5 #import "TCP_Internal.h"
1.6 #import "IPAddress.h"
1.7 +#import "MYBonjourService.h"
1.8
1.9 #import "Logging.h"
1.10 #import "Test.h"
1.11 @@ -103,6 +104,15 @@
1.12 return [self _initWithAddress: address inputStream: input outputStream: output];
1.13 }
1.14
1.15 +- (id) initToBonjourService: (MYBonjourService*)service;
1.16 +{
1.17 + NSNetService *netService = [[NSNetService alloc] initWithDomain: service.domain
1.18 + type: service.type name: service.name];
1.19 + self = [self initToNetService: netService];
1.20 + [service release];
1.21 + return self;
1.22 +}
1.23 +
1.24
1.25 - (id) initIncomingFromSocket: (CFSocketNativeHandle)socket
1.26 listener: (TCPListener*)listener