fgms 0.13.5
The
FlightGear MultiPlayer Server
project
T_MsgHdr Struct Reference

The header sent as the first part of all mp message packets. More...

#include <mpmessages.hxx>

Public Attributes

xdr_data_t Magic
 Magic Value. More...
 
xdr_data_t MsgId
 Message identifier. More...
 
xdr_data_t MsgLen
 Absolute length of message. More...
 
char Name [MAX_CALLSIGN_LEN]
 Callsign used by the player. More...
 
xdr_data_t RadarRange
 Player's radar range. More...
 
xdr_data_t ReplyPort
 Player's receiver port. More...
 
xdr_data_t Version
 Protocol version. More...
 

Detailed Description

The header sent as the first part of all mp message packets.

The header is expected to have the correct MSG_MAGIC and PROTO_VER and is checked upon in FG_SERVER::PacketIsValid

Definition at line 109 of file mpmessages.hxx.

Member Data Documentation

◆ Magic

◆ MsgId

xdr_data_t T_MsgHdr::MsgId

Message identifier.

Definition at line 116 of file mpmessages.hxx.

Referenced by FG_SERVER::HandlePacket(), FG_SERVER::PacketIsValid(), and FG_SERVER::SendToRelays().

◆ MsgLen

xdr_data_t T_MsgHdr::MsgLen

Absolute length of message.

Definition at line 118 of file mpmessages.hxx.

Referenced by FG_SERVER::PacketIsValid().

◆ Name

char T_MsgHdr::Name[MAX_CALLSIGN_LEN]

Callsign used by the player.

Definition at line 127 of file mpmessages.hxx.

Referenced by FG_SERVER::AddClient(), and FG_SERVER::HandlePacket().

◆ RadarRange

xdr_data_t T_MsgHdr::RadarRange

Player's radar range.

Definition at line 120 of file mpmessages.hxx.

Referenced by FG_SERVER::AddClient(), and FG_SERVER::HandlePacket().

◆ ReplyPort

xdr_data_t T_MsgHdr::ReplyPort

Player's receiver port.

Deprecated:
Not used in current implementation set to zero

Definition at line 125 of file mpmessages.hxx.

◆ Version

xdr_data_t T_MsgHdr::Version

Protocol version.

Definition at line 114 of file mpmessages.hxx.

Referenced by FG_SERVER::AddClient(), and FG_SERVER::PacketIsValid().


The documentation for this struct was generated from the following file: