project_files/HedgewarsMobile/Classes/ServerSetup.h
author koda
Fri, 28 Oct 2011 03:41:52 +0200
changeset 6220 39782c4d9246
parent 6078 8c0cc07731e5
permissions -rw-r--r--
ok *this* brings ios 3.* runtime compatibility
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
4976
088d40d8aba2 Happy 2011 :)
koda
parents: 4547
diff changeset
     3
 * Copyright (c) 2009-2011 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
b70004a576a3 move server connection stuff in its own class
koda
parents:
diff changeset
    16
 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
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
 * File created on 16/12/2010.
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
b70004a576a3 move server connection stuff in its own class
koda
parents:
diff changeset
    21
b70004a576a3 move server connection stuff in its own class
koda
parents:
diff changeset
    22
#import <Foundation/Foundation.h>
b70004a576a3 move server connection stuff in its own class
koda
parents:
diff changeset
    23
#import "SDL_net.h"
b70004a576a3 move server connection stuff in its own class
koda
parents:
diff changeset
    24
b70004a576a3 move server connection stuff in its own class
koda
parents:
diff changeset
    25
@interface ServerSetup : NSObject {
b70004a576a3 move server connection stuff in its own class
koda
parents:
diff changeset
    26
    NSDictionary *systemSettings;
b70004a576a3 move server connection stuff in its own class
koda
parents:
diff changeset
    27
b70004a576a3 move server connection stuff in its own class
koda
parents:
diff changeset
    28
    TCPsocket sd;      // External socket descriptor
b70004a576a3 move server connection stuff in its own class
koda
parents:
diff changeset
    29
}
b70004a576a3 move server connection stuff in its own class
koda
parents:
diff changeset
    30
6078
8c0cc07731e5 headers cleanup, converted some function-only sources into proper class method files, more use of OOP power, removed some 'respondsToSelector' calls, moved defines into their own header, more use of objc categories
koda
parents: 5483
diff changeset
    31
+(NSInteger) randomPort;
8c0cc07731e5 headers cleanup, converted some function-only sources into proper class method files, more use of OOP power, removed some 'respondsToSelector' calls, moved defines into their own header, more use of objc categories
koda
parents: 5483
diff changeset
    32
+(BOOL) isNetworkReachable;
8c0cc07731e5 headers cleanup, converted some function-only sources into proper class method files, more use of OOP power, removed some 'respondsToSelector' calls, moved defines into their own header, more use of objc categories
koda
parents: 5483
diff changeset
    33
4547
b70004a576a3 move server connection stuff in its own class
koda
parents:
diff changeset
    34
@property (nonatomic, retain) NSDictionary *systemSettings;
b70004a576a3 move server connection stuff in its own class
koda
parents:
diff changeset
    35
b70004a576a3 move server connection stuff in its own class
koda
parents:
diff changeset
    36
@end