network_udp.h
author bjarni
Thu, 23 Feb 2006 18:52:13 +0000
changeset 3072 d1e6aa66a450
parent 2436 7d5df545bd5d
child 4830 668bcb0a30b2
permissions -rw-r--r--
(svn r3661) -Fix [PPC computers] quick dirty fix for failure to start the game on BE CPUs
3626 broke the game on Big endian CPUs and this is a quick dirty fix
so the nightly builds for OSX and MorphOS will work again
the game will still fail on 64 bit BE CPUs
note: the game runs in 32 bit mode on G5, so it will work on G5
we need to make a better fix for this, but we also need the nightly builds to work
2186
db48cf29b983 (svn r2701) Insert Id tags into all source files
tron
parents: 1329
diff changeset
     1
/* $Id$ */
db48cf29b983 (svn r2701) Insert Id tags into all source files
tron
parents: 1329
diff changeset
     2
2436
7d5df545bd5d (svn r2962) - const correctness for all Get* functions and most Draw* functions that don't change their pointer parameters
Darkvater
parents: 2186
diff changeset
     3
#ifndef NETWORK_UDP_H
7d5df545bd5d (svn r2962) - const correctness for all Get* functions and most Draw* functions that don't change their pointer parameters
Darkvater
parents: 2186
diff changeset
     4
#define NETWORK_UDP_H
543
946badd71033 (svn r942) -Merged branch/network back into the trunk
truelight
parents:
diff changeset
     5
774
bb9ec520a1b1 (svn r1240) -Fix: OpenTTD once again compiles if ENABLE_NETWORK is disabled.
darkvater
parents: 765
diff changeset
     6
#ifdef ENABLE_NETWORK
bb9ec520a1b1 (svn r1240) -Fix: OpenTTD once again compiles if ENABLE_NETWORK is disabled.
darkvater
parents: 765
diff changeset
     7
543
946badd71033 (svn r942) -Merged branch/network back into the trunk
truelight
parents:
diff changeset
     8
void NetworkUDPInitialize(void);
764
7e1e17b7c7d4 (svn r1227) -Add: Ingame Server-list (select Internet, then Find Servers)
truelight
parents: 738
diff changeset
     9
bool NetworkUDPListen(SOCKET *udp, uint32 host, uint16 port, bool broadcast);
7e1e17b7c7d4 (svn r1227) -Add: Ingame Server-list (select Internet, then Find Servers)
truelight
parents: 738
diff changeset
    10
void NetworkUDPReceive(SOCKET udp);
543
946badd71033 (svn r942) -Merged branch/network back into the trunk
truelight
parents:
diff changeset
    11
void NetworkUDPSearchGame(void);
764
7e1e17b7c7d4 (svn r1227) -Add: Ingame Server-list (select Internet, then Find Servers)
truelight
parents: 738
diff changeset
    12
void NetworkUDPQueryMasterServer(void);
1329
6988419aa6f0 (svn r1833) byte -> char transition: the rest
tron
parents: 774
diff changeset
    13
NetworkGameList *NetworkUDPQueryServer(const char* host, unsigned short port);
716
8af847728d5b (svn r1168) -Cleanup: [Network] Cleaned the network code a bit. Added 'const'
truelight
parents: 668
diff changeset
    14
void NetworkUDPAdvertise(void);
765
18104986675d (svn r1228) -Add: [Network] When a server normally shuts down, it removed itself
truelight
parents: 764
diff changeset
    15
void NetworkUDPRemoveAdvertise(void);
543
946badd71033 (svn r942) -Merged branch/network back into the trunk
truelight
parents:
diff changeset
    16
774
bb9ec520a1b1 (svn r1240) -Fix: OpenTTD once again compiles if ENABLE_NETWORK is disabled.
darkvater
parents: 765
diff changeset
    17
#endif
bb9ec520a1b1 (svn r1240) -Fix: OpenTTD once again compiles if ENABLE_NETWORK is disabled.
darkvater
parents: 765
diff changeset
    18
2436
7d5df545bd5d (svn r2962) - const correctness for all Get* functions and most Draw* functions that don't change their pointer parameters
Darkvater
parents: 2186
diff changeset
    19
#endif /* NETWORK_UDP_H */