equal
deleted
inserted
replaced
1 /* $Id$ */ |
1 /* $Id$ */ |
2 |
|
3 #ifndef NETWORK_CORE_UDP_H |
|
4 #define NETWORK_CORE_UDP_H |
|
5 |
|
6 #ifdef ENABLE_NETWORK |
|
7 |
|
8 #include "os_abstraction.h" |
|
9 #include "core.h" |
|
10 #include "game.h" |
|
11 #include "packet.h" |
|
12 #include "../../debug.h" |
|
13 |
2 |
14 /** |
3 /** |
15 * @file udp.h Basic functions to receive and send UDP packets. |
4 * @file udp.h Basic functions to receive and send UDP packets. |
16 * |
5 * |
17 * |
6 * |
69 * 1+ 2 height of the map in tiles |
58 * 1+ 2 height of the map in tiles |
70 * 1+ 1 type of map: |
59 * 1+ 1 type of map: |
71 * (0 = temperate, 1 = arctic, 2 = desert, 3 = toyland) |
60 * (0 = temperate, 1 = arctic, 2 = desert, 3 = toyland) |
72 * 1+ 1 whether the server is dedicated (0 = no, 1 = yes) |
61 * 1+ 1 whether the server is dedicated (0 = no, 1 = yes) |
73 */ |
62 */ |
|
63 |
|
64 #ifndef NETWORK_CORE_UDP_H |
|
65 #define NETWORK_CORE_UDP_H |
|
66 |
|
67 #ifdef ENABLE_NETWORK |
|
68 |
|
69 #include "os_abstraction.h" |
|
70 #include "core.h" |
|
71 #include "game.h" |
|
72 #include "packet.h" |
|
73 #include "../../debug.h" |
74 |
74 |
75 /** Enum with all types of UDP packets. The order MUST not be changed **/ |
75 /** Enum with all types of UDP packets. The order MUST not be changed **/ |
76 enum PacketUDPType { |
76 enum PacketUDPType { |
77 PACKET_UDP_CLIENT_FIND_SERVER, ///< Queries a game server for game information |
77 PACKET_UDP_CLIENT_FIND_SERVER, ///< Queries a game server for game information |
78 PACKET_UDP_SERVER_RESPONSE, ///< Reply of the game server with game information |
78 PACKET_UDP_SERVER_RESPONSE, ///< Reply of the game server with game information |