TCP/TCP_Internal.h
author Dan Preston <danpreston@codechemistry.com>
Tue May 05 15:27:20 2009 -0700 (2009-05-05)
changeset 40 423c134d3205
parent 19 16454d63d4c2
permissions -rw-r--r--
Tweaked release to be immediate instead of on autorelease pool.
     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) _streamCanClose: (TCPStream*)stream;
    24 - (void) _streamGotEOF: (TCPStream*)stream;
    25 - (void) _streamDisconnected: (TCPStream*)stream;
    26 @end
    27 
    28 
    29 @interface TCPStream ()
    30 - (void) _unclose;
    31 @end
    32 
    33 
    34 @interface TCPEndpoint ()
    35 + (NSString*) describeCert: (SecCertificateRef)cert;
    36 + (NSString*) describeIdentity: (SecIdentityRef)identity;
    37 @end