project_files/HedgewarsMobile/Classes/EngineProtocolNetwork.h
changeset 6321 5a0416e5a6de
parent 6265 a6944f94c19f
child 6353 d8f62c805619
--- a/project_files/HedgewarsMobile/Classes/EngineProtocolNetwork.h	Fri Nov 11 01:18:19 2011 +0100
+++ b/project_files/HedgewarsMobile/Classes/EngineProtocolNetwork.h	Fri Nov 11 01:40:23 2011 +0100
@@ -32,17 +32,21 @@
     id<EngineProtocolDelegate> delegate;
 
     NSOutputStream *stream;
-    TCPsocket csd;                  // Client socket descriptor
+    TCPsocket csd;
+    NSInteger enginePort;
 }
 
 @property (nonatomic,assign) id<EngineProtocolDelegate> delegate;
 @property (nonatomic,retain) NSOutputStream *stream;
 @property (assign) TCPsocket csd;
+@property (assign) NSInteger enginePort;
 
 
 -(id)   init;
 
--(NSInteger) spawnThread:(NSString *)onSaveFile withOptions:(NSDictionary *)dictionary;
++(void) spawnThread:(NSString *)onSaveFile withOptions:(NSDictionary *)dictionary;
++(NSInteger) activeEnginePort;
+
 -(void) engineProtocol:(id) object;
 -(void) gameHasEndedWithStats:(NSArray *)stats;