diff -r cb9cdf247239 -r de59ce19f42e TCP/TCPConnection.h --- a/TCP/TCPConnection.h Wed Apr 22 16:45:39 2009 -0700 +++ b/TCP/TCPConnection.h Tue Jun 23 11:44:30 2009 -0700 @@ -9,7 +9,7 @@ #import "TCPEndpoint.h" #import @class IPAddress; -@class TCPReader, TCPWriter, TCPListener; +@class TCPReader, TCPWriter, TCPListener, MYBonjourService; @protocol TCPConnectionDelegate; @@ -47,6 +47,10 @@ If the service's address cannot be resolved, nil is returned. */ - (id) initToNetService: (NSNetService*)service; +/** Initializes a TCPConnection to the given MYBonjourService's address and port. + If the service's address cannot be resolved, nil is returned. */ +- (id) initToBonjourService: (MYBonjourService*)service; + /** Initializes a TCPConnection from an incoming TCP socket. You don't usually need to call this; TCPListener does it automatically. */ - (id) initIncomingFromSocket: (CFSocketNativeHandle)socket listener: (TCPListener*)listener;