project_files/HedgewarsMobile/Classes/EngineProtocolNetwork.h
changeset 6265 a6944f94c19f
parent 5155 f2165724605c
child 6321 5a0416e5a6de
equal deleted inserted replaced
6264:62d59a87daad 6265:a6944f94c19f
    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;