Misc. tweaks made while porting Chatty to use MYNetwork.
* Allow -[BLIPConnection sendRequest:] to re-send an already-sent or received request.
* Allow use of the basic -init method for BLIPConnection.
* Some new convenience factory methods.
* Broke dependencies on Security.framework out into new TCPEndpoint+Certs.m source file, so client apps aren't forced to link against Security.
5 // Created by Jens Alfke on 5/18/08.
6 // Copyright 2008 Jens Alfke. All rights reserved.
11 #import "TCPConnection.h"
12 #import "TCPListener.h"
14 /* Private declarations and APIs for TCP client/server implementation. */
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;
29 @interface TCPStream ()
34 @interface TCPEndpoint ()
35 + (NSString*) describeCert: (SecCertificateRef)cert;
36 + (NSString*) describeIdentity: (SecIdentityRef)identity;