30 |
30 |
31 @interface EngineProtocolNetwork : NSObject { |
31 @interface EngineProtocolNetwork : NSObject { |
32 id<EngineProtocolDelegate> delegate; |
32 id<EngineProtocolDelegate> delegate; |
33 |
33 |
34 NSOutputStream *stream; |
34 NSOutputStream *stream; |
35 NSInteger ipcPort; // Port on which engine will listen |
|
36 TCPsocket csd; // Client socket descriptor |
35 TCPsocket csd; // Client socket descriptor |
37 } |
36 } |
38 |
37 |
39 @property (nonatomic,assign) id<EngineProtocolDelegate> delegate; |
38 @property (nonatomic,assign) id<EngineProtocolDelegate> delegate; |
40 @property (nonatomic,retain) NSOutputStream *stream; |
39 @property (nonatomic,retain) NSOutputStream *stream; |
41 @property (assign) NSInteger ipcPort; |
|
42 @property (assign) TCPsocket csd; |
40 @property (assign) TCPsocket csd; |
43 |
41 |
44 |
42 |
45 -(id) init; |
43 -(id) init; |
46 -(id) initOnPort:(NSInteger) port; |
|
47 |
44 |
48 -(void) spawnThread:(NSString *)onSaveFile; |
45 -(NSInteger) spawnThread:(NSString *)onSaveFile withOptions:(NSDictionary *)dictionary; |
49 -(void) spawnThread:(NSString *)onSaveFile withOptions:(NSDictionary *)dictionary; |
|
50 -(void) engineProtocol:(id) object; |
46 -(void) engineProtocol:(id) object; |
51 -(void) gameHasEndedWithStats:(NSArray *)stats; |
47 -(void) gameHasEndedWithStats:(NSArray *)stats; |
52 |
48 |
53 -(int) sendToEngine:(NSString *)string; |
49 -(int) sendToEngine:(NSString *)string; |
54 -(int) sendToEngineNoSave:(NSString *)string; |
50 -(int) sendToEngineNoSave:(NSString *)string; |