1 // mpmessages.hxx -- Message definitions for multiplayer communications
2 // within a multiplayer Flightgear
4 // Written by Duncan McCreanor, started February 2003.
5 // duncan.mccreanor@airservicesaustralia.com
7 // Copyright (C) 2003 Airservices Australia
9 // This program is free software; you can redistribute it and/or
10 // modify it under the terms of the GNU General Public License as
11 // published by the Free Software Foundation; either version 2 of the
12 // License, or (at your option) any later version.
14 // This program is distributed in the hope that it will be useful, but
15 // WITHOUT ANY WARRANTY; without even the implied warranty of
16 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17 // General Public License for more details.
19 // You should have received a copy of the GNU General Public License
20 // along with this program; if not, write to the Free Software
21 // Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
27 #define MPMESSAGES_HID "$Id$"
29 /****************************************************************
32 * Description: Each message used for multiplayer communications
33 * consists of a header and optionally a block of data. The combined
34 * header and data is sent as one IP packet.
36 ******************************************************************/
40 // Message identifiers
44 #define MAX_CALLSIGN_LEN 10
45 /** Header for use with all messages sent */
48 /** Message identifier */
51 /** Length of the message inclusive of this header */
54 /** IP address for reply to message (player's receiver address) */
55 unsigned long int lReplyAddress;
57 /** Port for replies (player's receiver port) */
58 unsigned int iReplyPort;
60 /** Callsign used by the player */
61 char sCallsign[MAX_CALLSIGN_LEN];
65 #define MAX_CHAT_MSG_LEN 50
69 /** Text of chat message */
70 char sText[MAX_CHAT_MSG_LEN];
75 #define MAX_MODEL_NAME_LEN 50
76 /** Aircraft position message */
79 /** Name of the aircraft model */
80 char sModel[MAX_MODEL_NAME_LEN];
82 /** Position data for the aircraft */