project_files/HedgewarsMobile/Classes/ServerProtocolNetwork.h
author Wuzzy <Wuzzy2@mail.ru>
Sat, 30 Nov 2019 02:54:49 +0100
changeset 15514 6ddfde71ba6a
parent 12877 00215a7ec5f5
permissions -rw-r--r--
Remove parachute early if hog is inside land Fixes a bug: When you used parachute right after using a parachute to dig inside land, you might become stuck. Reported here: https://hedgewars.org/node/9035
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
4547
b70004a576a3 move server connection stuff in its own class
koda
parents:
diff changeset
     1
/*
b70004a576a3 move server connection stuff in its own class
koda
parents:
diff changeset
     2
 * Hedgewars-iOS, a Hedgewars port for iOS devices
6700
e04da46ee43c the most important commit of the year
koda
parents: 6337
diff changeset
     3
 * Copyright (c) 2009-2012 Vittorio Giovara <vittorio.giovara@gmail.com>
4547
b70004a576a3 move server connection stuff in its own class
koda
parents:
diff changeset
     4
 *
b70004a576a3 move server connection stuff in its own class
koda
parents:
diff changeset
     5
 * This program is free software; you can redistribute it and/or modify
b70004a576a3 move server connection stuff in its own class
koda
parents:
diff changeset
     6
 * it under the terms of the GNU General Public License as published by
b70004a576a3 move server connection stuff in its own class
koda
parents:
diff changeset
     7
 * the Free Software Foundation; version 2 of the License
b70004a576a3 move server connection stuff in its own class
koda
parents:
diff changeset
     8
 *
b70004a576a3 move server connection stuff in its own class
koda
parents:
diff changeset
     9
 * This program is distributed in the hope that it will be useful,
b70004a576a3 move server connection stuff in its own class
koda
parents:
diff changeset
    10
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
b70004a576a3 move server connection stuff in its own class
koda
parents:
diff changeset
    11
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
b70004a576a3 move server connection stuff in its own class
koda
parents:
diff changeset
    12
 * GNU General Public License for more details.
b70004a576a3 move server connection stuff in its own class
koda
parents:
diff changeset
    13
 *
b70004a576a3 move server connection stuff in its own class
koda
parents:
diff changeset
    14
 * You should have received a copy of the GNU General Public License
b70004a576a3 move server connection stuff in its own class
koda
parents:
diff changeset
    15
 * along with this program; if not, write to the Free Software
10108
c68cf030eded update FSF address. note: two sdl include files (by Sam Lantinga) still have the old FSF address in their copyright - but I ain't gonna touch their copyright headers
sheepluva
parents: 6868
diff changeset
    16
 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA.
4547
b70004a576a3 move server connection stuff in its own class
koda
parents:
diff changeset
    17
 */
b70004a576a3 move server connection stuff in its own class
koda
parents:
diff changeset
    18
b70004a576a3 move server connection stuff in its own class
koda
parents:
diff changeset
    19
b70004a576a3 move server connection stuff in its own class
koda
parents:
diff changeset
    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
b70004a576a3 move server connection stuff in its own class
koda
parents:
diff changeset
    22
6832
fae8fd118da9 dates are no more!
koda
parents: 6822
diff changeset
    23
6246
6b2d19ed521a just moving ios server stuff around
koda
parents: 6078
diff changeset
    24
@interface ServerProtocolNetwork : NSObject {
6b2d19ed521a just moving ios server stuff around
koda
parents: 6078
diff changeset
    25
    NSInteger serverPort;
6b2d19ed521a just moving ios server stuff around
koda
parents: 6078
diff changeset
    26
    NSString *serverAddress;
6320
238a6dc0e7ad minor updates to ServerProtocolNetwork class
koda
parents: 6246
diff changeset
    27
    TCPsocket ssd;
4547
b70004a576a3 move server connection stuff in its own class
koda
parents:
diff changeset
    28
}
b70004a576a3 move server connection stuff in its own class
koda
parents:
diff changeset
    29
6320
238a6dc0e7ad minor updates to ServerProtocolNetwork class
koda
parents: 6246
diff changeset
    30
@property (assign) TCPsocket ssd;
6246
6b2d19ed521a just moving ios server stuff around
koda
parents: 6078
diff changeset
    31
@property (assign) NSInteger serverPort;
12877
00215a7ec5f5 - BIG CHANGE: Convert iOS project to use ARC
antonc27 <antonc27@mail.ru>
parents: 10108
diff changeset
    32
@property (nonatomic, strong) NSString *serverAddress;
4547
b70004a576a3 move server connection stuff in its own class
koda
parents:
diff changeset
    33
12877
00215a7ec5f5 - BIG CHANGE: Convert iOS project to use ARC
antonc27 <antonc27@mail.ru>
parents: 10108
diff changeset
    34
- (id)init;
00215a7ec5f5 - BIG CHANGE: Convert iOS project to use ARC
antonc27 <antonc27@mail.ru>
parents: 10108
diff changeset
    35
- (id)init:(NSInteger)onPort withAddress:(NSString *)address;
00215a7ec5f5 - BIG CHANGE: Convert iOS project to use ARC
antonc27 <antonc27@mail.ru>
parents: 10108
diff changeset
    36
- (id)initOnPort:(NSInteger)port;
00215a7ec5f5 - BIG CHANGE: Convert iOS project to use ARC
antonc27 <antonc27@mail.ru>
parents: 10108
diff changeset
    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
238a6dc0e7ad minor updates to ServerProtocolNetwork class
koda
parents: 6246
diff changeset
    39
4547
b70004a576a3 move server connection stuff in its own class
koda
parents:
diff changeset
    40
@end