// // StreamPairFactory.h // CFN // // Created by Stefan Reitshamer on 2/25/10. // Copyright 2010 __MyCompanyName__. All rights reserved. // #import @protocol StreamPair; @interface StreamPairFactory : NSObject { NSTimeInterval maxStreamPairLifetime; NSLock *lock; NSMutableDictionary *threadMap; } + (StreamPairFactory *)theFactory; - (void)setMaxStreamPairLifetime:(NSTimeInterval)theMaxLifetime; - (id )newStreamPairToHost:(NSString *)theHost useSSL:(BOOL)isUseSSL error:(NSError **)error; - (void)clear; @end