project_files/HedgewarsMobile/Classes/EngineProtocolNetwork.h
changeset 6832 fae8fd118da9
parent 6822 206db098f8c5
child 6868 f31b5213b163
equal deleted inserted replaced
6831:f848120b3fcc 6832:fae8fd118da9
    12  * GNU General Public License for more details.
    12  * GNU General Public License for more details.
    13  *
    13  *
    14  * You should have received a copy of the GNU General Public License
    14  * You should have received a copy of the GNU General Public License
    15  * along with this program; if not, write to the Free Software
    15  * along with this program; if not, write to the Free Software
    16  * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
    16  * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
    17  *
       
    18  * File created on 10/01/2010.
       
    19  */
    17  */
    20 
    18 
    21 
    19 
    22 #import <Foundation/Foundation.h>
    20 #import <Foundation/Foundation.h>
       
    21 
    23 
    22 
    24 @interface EngineProtocolNetwork : NSObject {
    23 @interface EngineProtocolNetwork : NSObject {
    25     NSMutableArray *statsArray;
    24     NSMutableArray *statsArray;
    26     NSOutputStream *stream;
    25     NSOutputStream *stream;
    27     TCPsocket csd;
    26     TCPsocket csd;
    31 @property (nonatomic,assign) NSMutableArray *statsArray;
    30 @property (nonatomic,assign) NSMutableArray *statsArray;
    32 @property (nonatomic,retain) NSOutputStream *stream;
    31 @property (nonatomic,retain) NSOutputStream *stream;
    33 @property (assign) TCPsocket csd;
    32 @property (assign) TCPsocket csd;
    34 @property (assign) NSInteger enginePort;
    33 @property (assign) NSInteger enginePort;
    35 
    34 
    36 
       
    37 -(id)   init;
    35 -(id)   init;
    38 -(void) spawnThread:(NSString *)onSaveFile withOptions:(NSDictionary *)dictionary;
    36 -(void) spawnThread:(NSString *)onSaveFile withOptions:(NSDictionary *)dictionary;
    39 -(void) engineProtocol:(id) object;
    37 -(void) engineProtocol:(id) object;
    40 
    38 
    41 -(int)  sendToEngine:(NSString *)string;
    39 -(int)  sendToEngine:(NSString *)string;