network_udp.h
author Darkvater
Tue, 16 Jan 2007 23:59:03 +0000
branch0.5
changeset 5407 e354823cde11
parent 4830 0ff2a14e90be
permissions -rw-r--r--
(svn r8170) -Backport from trunk (r7984, r8118, r8167, r8168):
- out-of-bounds read access on _clients array (Quark) (r7984)
- change the ordering of the network list (r8118)
- (FS#556): a network client crashes, due to a division by zero (r8167)
- ParseConnectionstring didn't use the port parameter if a player was also specified (r8168)
2186
461a2aff3486 (svn r2701) Insert Id tags into all source files
tron
parents: 1329
diff changeset
     1
/* $Id$ */
461a2aff3486 (svn r2701) Insert Id tags into all source files
tron
parents: 1329
diff changeset
     2
2436
177cb6a8339f (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
177cb6a8339f (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
e3b43338096b (svn r942) -Merged branch/network back into the trunk
truelight
parents:
diff changeset
     5
774
258c11431acb (svn r1240) -Fix: OpenTTD once again compiles if ENABLE_NETWORK is disabled.
darkvater
parents: 765
diff changeset
     6
#ifdef ENABLE_NETWORK
258c11431acb (svn r1240) -Fix: OpenTTD once again compiles if ENABLE_NETWORK is disabled.
darkvater
parents: 765
diff changeset
     7
543
e3b43338096b (svn r942) -Merged branch/network back into the trunk
truelight
parents:
diff changeset
     8
void NetworkUDPInitialize(void);
764
68b398e2b780 (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);
68b398e2b780 (svn r1227) -Add: Ingame Server-list (select Internet, then Find Servers)
truelight
parents: 738
diff changeset
    10
void NetworkUDPReceive(SOCKET udp);
543
e3b43338096b (svn r942) -Merged branch/network back into the trunk
truelight
parents:
diff changeset
    11
void NetworkUDPSearchGame(void);
764
68b398e2b780 (svn r1227) -Add: Ingame Server-list (select Internet, then Find Servers)
truelight
parents: 738
diff changeset
    12
void NetworkUDPQueryMasterServer(void);
1329
a8a0d60b0a8e (svn r1833) byte -> char transition: the rest
tron
parents: 774
diff changeset
    13
NetworkGameList *NetworkUDPQueryServer(const char* host, unsigned short port);
716
40a349345f82 (svn r1168) -Cleanup: [Network] Cleaned the network code a bit. Added 'const'
truelight
parents: 668
diff changeset
    14
void NetworkUDPAdvertise(void);
765
7e9c5cdfdf1c (svn r1228) -Add: [Network] When a server normally shuts down, it removed itself
truelight
parents: 764
diff changeset
    15
void NetworkUDPRemoveAdvertise(void);
543
e3b43338096b (svn r942) -Merged branch/network back into the trunk
truelight
parents:
diff changeset
    16
4830
0ff2a14e90be (svn r6754) -Codechange: Remove some #idef ENABLE_NETWORK specific defines. With networking
Darkvater
parents: 2436
diff changeset
    17
#endif /* ENABLE_NETWORK */
774
258c11431acb (svn r1240) -Fix: OpenTTD once again compiles if ENABLE_NETWORK is disabled.
darkvater
parents: 765
diff changeset
    18
2436
177cb6a8339f (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 */