jens@0: // jens@0: // TCP_Internal.h jens@0: // MYNetwork jens@0: // jens@0: // Created by Jens Alfke on 5/18/08. jens@0: // Copyright 2008 Jens Alfke. All rights reserved. jens@0: // jens@0: jens@0: jens@0: #import "TCPWriter.h" jens@0: #import "TCPConnection.h" jens@0: #import "TCPListener.h" jens@0: jens@0: /* Private declarations and APIs for TCP client/server implementation. */ jens@0: jens@0: jens@0: jens@0: @interface TCPConnection () jens@0: - (void) _setStreamProperty: (id)value forKey: (NSString*)key; jens@0: - (void) _streamOpened: (TCPStream*)stream; jens@0: - (BOOL) _streamPeerCertAvailable: (TCPStream*)stream; jens@0: - (void) _stream: (TCPStream*)stream gotError: (NSError*)error; jens@18: - (void) _streamCanClose: (TCPStream*)stream; jens@0: - (void) _streamGotEOF: (TCPStream*)stream; jens@18: - (void) _streamDisconnected: (TCPStream*)stream; jens@0: @end jens@19: jens@19: jens@19: @interface TCPStream () jens@19: - (void) _unclose; jens@19: @end jens@19: