fgms 0.11.8
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 ReplyAddress
 Player's receiver address. 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 80 of file mpmessages.hxx.

Member Data Documentation

xdr_data_t T_MsgHdr::MsgId

Message identifier.

Definition at line 87 of file mpmessages.hxx.

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

xdr_data_t T_MsgHdr::MsgLen

Absolute length of message.

Definition at line 89 of file mpmessages.hxx.

Referenced by FG_SERVER::PacketIsValid().

char T_MsgHdr::Name[MAX_CALLSIGN_LEN]

Callsign used by the player.

Definition at line 101 of file mpmessages.hxx.

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

xdr_data_t T_MsgHdr::ReplyAddress

Player's receiver address.

Deprecated:
Not used in current implementation set to zero

Definition at line 94 of file mpmessages.hxx.

Referenced by FG_SERVER::SendToCrossfeed().

xdr_data_t T_MsgHdr::ReplyPort

Player's receiver port.

Deprecated:
Not used in current implementation set to zero

Definition at line 99 of file mpmessages.hxx.

Referenced by FG_SERVER::SendToCrossfeed().

xdr_data_t T_MsgHdr::Version

Protocol version.

Definition at line 85 of file mpmessages.hxx.

Referenced by FG_SERVER::PacketIsValid().


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