TCP/TCP_Internal.h
author Jens Alfke <jens@mooseyard.com>
Sun May 25 13:43:03 2008 -0700 (2008-05-25)
changeset 7 5936db2c1987
child 18 3be241de1630
permissions -rw-r--r--
Added -[TCPConnection initToNetService:] to make it easier to use with Bonjour. This allowed me to simplify BLIPEchoClient quite a lot.
     1 //
     2 //  TCP_Internal.h
     3 //  MYNetwork
     4 //
     5 //  Created by Jens Alfke on 5/18/08.
     6 //  Copyright 2008 Jens Alfke. All rights reserved.
     7 //
     8 
     9 
    10 #import "TCPWriter.h"
    11 #import "TCPConnection.h"
    12 #import "TCPListener.h"
    13 
    14 /* Private declarations and APIs for TCP client/server implementation. */
    15 
    16 
    17 
    18 @interface TCPConnection ()
    19 - (void) _setStreamProperty: (id)value forKey: (NSString*)key;
    20 - (void) _streamOpened: (TCPStream*)stream;
    21 - (BOOL) _streamPeerCertAvailable: (TCPStream*)stream;
    22 - (void) _stream: (TCPStream*)stream gotError: (NSError*)error;
    23 - (void) _streamGotEOF: (TCPStream*)stream;
    24 - (void) _streamClosed: (TCPStream*)stream;
    25 @end