author | Kimsey0 |
Sun, 04 Dec 2011 11:53:08 +0100 | |
changeset 6493 | 90b5744fad17 |
parent 6337 | 84e7d1a5e3df |
child 6700 | e04da46ee43c |
permissions | -rw-r--r-- |
4547 | 1 |
/* |
2 |
* Hedgewars-iOS, a Hedgewars port for iOS devices |
|
4976 | 3 |
* Copyright (c) 2009-2011 Vittorio Giovara <vittorio.giovara@gmail.com> |
4547 | 4 |
* |
5 |
* This program is free software; you can redistribute it and/or modify |
|
6 |
* it under the terms of the GNU General Public License as published by |
|
7 |
* the Free Software Foundation; version 2 of the License |
|
8 |
* |
|
9 |
* This program is distributed in the hope that it will be useful, |
|
10 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
11 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
12 |
* GNU General Public License for more details. |
|
13 |
* |
|
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 |
|
16 |
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. |
|
17 |
* |
|
18 |
* File created on 16/12/2010. |
|
19 |
*/ |
|
20 |
||
21 |
||
22 |
#import <Foundation/Foundation.h> |
|
6320 | 23 |
#import "SDL_net.h" |
24 |
//#import "EngineProtocolNetwork.h" |
|
4547 | 25 |
|
6246 | 26 |
@interface ServerProtocolNetwork : NSObject { |
27 |
NSInteger serverPort; |
|
28 |
NSString *serverAddress; |
|
6320 | 29 |
TCPsocket ssd; |
4547 | 30 |
} |
31 |
||
6320 | 32 |
@property (assign) TCPsocket ssd; |
6246 | 33 |
@property (assign) NSInteger serverPort; |
34 |
@property (nonatomic,retain) NSString *serverAddress; |
|
4547 | 35 |
|
6320 | 36 |
-(id) init; |
37 |
-(id) init:(NSInteger) onPort withAddress:(NSString *)address; |
|
38 |
-(id) initOnPort:(NSInteger) port; |
|
39 |
-(id) initToAddress:(NSString *)address; |
|
6337
84e7d1a5e3df
in class methods you can call [self alloc], as per objc specifications
koda
parents:
6320
diff
changeset
|
40 |
+(id) openServerConnection; |
6320 | 41 |
|
4547 | 42 |
@end |