TCP/TCPConnection.h
changeset 40 423c134d3205
parent 26 cb9cdf247239
     1.1 --- a/TCP/TCPConnection.h	Wed Apr 22 16:45:39 2009 -0700
     1.2 +++ b/TCP/TCPConnection.h	Tue May 05 15:27:20 2009 -0700
     1.3 @@ -9,7 +9,7 @@
     1.4  #import "TCPEndpoint.h"
     1.5  #import <Security/Security.h>
     1.6  @class IPAddress;
     1.7 -@class TCPReader, TCPWriter, TCPListener;
     1.8 +@class TCPReader, TCPWriter, TCPListener, MYBonjourService;
     1.9  @protocol TCPConnectionDelegate;
    1.10  
    1.11  
    1.12 @@ -47,6 +47,10 @@
    1.13      If the service's address cannot be resolved, nil is returned. */
    1.14  - (id) initToNetService: (NSNetService*)service;
    1.15  
    1.16 +/** Initializes a TCPConnection to the given MYBonjourService's address and port.
    1.17 +    If the service's address cannot be resolved, nil is returned. */
    1.18 +- (id) initToBonjourService: (MYBonjourService*)service;
    1.19 +
    1.20  /** Initializes a TCPConnection from an incoming TCP socket.
    1.21      You don't usually need to call this; TCPListener does it automatically. */
    1.22  - (id) initIncomingFromSocket: (CFSocketNativeHandle)socket listener: (TCPListener*)listener;