equal
deleted
inserted
replaced
18 * File created on 16/12/2010. |
18 * File created on 16/12/2010. |
19 */ |
19 */ |
20 |
20 |
21 |
21 |
22 #import <Foundation/Foundation.h> |
22 #import <Foundation/Foundation.h> |
23 #import "EngineProtocolNetwork.h" |
23 #import "SDL_net.h" |
|
24 //#import "EngineProtocolNetwork.h" |
24 |
25 |
25 @interface ServerProtocolNetwork : NSObject { |
26 @interface ServerProtocolNetwork : NSObject { |
26 NSInteger serverPort; |
27 NSInteger serverPort; |
27 NSString *serverAddress; |
28 NSString *serverAddress; |
|
29 TCPsocket ssd; |
28 } |
30 } |
29 |
31 |
|
32 @property (assign) TCPsocket ssd; |
30 @property (assign) NSInteger serverPort; |
33 @property (assign) NSInteger serverPort; |
31 @property (nonatomic,retain) NSString *serverAddress; |
34 @property (nonatomic,retain) NSString *serverAddress; |
32 |
35 |
|
36 -(id) init; |
|
37 -(id) init:(NSInteger) onPort withAddress:(NSString *)address; |
|
38 -(id) initOnPort:(NSInteger) port; |
|
39 -(id) initToAddress:(NSString *)address; |
|
40 +(ServerProtocolNetwork *)openServerConnection; |
|
41 |
33 @end |
42 @end |