// // Communicator.h // StreamExample // // Created by Roger Jungemann on 6/20/10. // Copyright 2010 __MyCompanyName__. All rights reserved. // #import @interface Communicator : NSObject { @public NSString *host; int port; } - (void)setup; - (void)open; - (void)close; - (void)stream:(NSStream *)stream handleEvent:(NSStreamEvent)event; - (void)readIn:(NSString *)s; - (void)writeOut:(NSString *)s; @end