// // TuveConnection.h // Tuve // // Created by Philippe Hausler on 9/8/08. // Copyright 2008 Philippe Hausler. All rights reserved. // #import <UIKit/UIKit.h> enum { TUWaitingForCrossDomainPolicy = 1, TUWaitingForVersionHandshake = 2, TUWaitingForIdentResponse = 3, TUWaitingForChannelJoinResponse = 4, TUWaitingForLoginResponse = 5, TUIde = 999 }; @class TCPSocket; @interface TuveConnection : NSObject { TCPSocket *channelSocket; NSFileHandle *channelConnection; NSUInteger protocolStage; NSString *buffer; NSString *tChannel; NSString *login; NSString *password; } @property (nonatomic, copy) NSString *tChannel; - (void)processString:(NSString *)packetStr; - (void)sendVersion; - (void)sendIdent; - (void)joinChannel:(NSString *)channel; - (void)login; - (void)pong; - (void)sendChat:(NSString *)chat toChannel:(NSString *)channel; @end