author | nemo |
Thu, 18 Oct 2012 14:04:24 -0400 | |
changeset 7767 | d1ea9b3f543e |
parent 6868 | f31b5213b163 |
child 10108 | c68cf030eded |
permissions | -rw-r--r-- |
4547 | 1 |
/* |
2 |
* Hedgewars-iOS, a Hedgewars port for iOS devices |
|
6700 | 3 |
* Copyright (c) 2009-2012 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 |
||
19 |
||
20 |
#import <Foundation/Foundation.h> |
|
6868
f31b5213b163
i don't understand this, but without this change audio doesn't fade on ios
koda
parents:
6832
diff
changeset
|
21 |
#import "SDL_net.h" |
4547 | 22 |
|
6832 | 23 |
|
6246 | 24 |
@interface ServerProtocolNetwork : NSObject { |
25 |
NSInteger serverPort; |
|
26 |
NSString *serverAddress; |
|
6320 | 27 |
TCPsocket ssd; |
4547 | 28 |
} |
29 |
||
6320 | 30 |
@property (assign) TCPsocket ssd; |
6246 | 31 |
@property (assign) NSInteger serverPort; |
32 |
@property (nonatomic,retain) NSString *serverAddress; |
|
4547 | 33 |
|
6320 | 34 |
-(id) init; |
35 |
-(id) init:(NSInteger) onPort withAddress:(NSString *)address; |
|
36 |
-(id) initOnPort:(NSInteger) port; |
|
37 |
-(id) initToAddress:(NSString *)address; |
|
6337
84e7d1a5e3df
in class methods you can call [self alloc], as per objc specifications
koda
parents:
6320
diff
changeset
|
38 |
+(id) openServerConnection; |
6320 | 39 |
|
4547 | 40 |
@end |