ok lets say i have a structure
struct Msg_42
{
Msg_42();//constructor
U32 Vehicle_ID;
U32 CUCS_ID;
U8 Flight_Path_Control_Mode;
};
with a header structure
struct STANAG_Message_Header
{
U8 IDD [10];
U16 Mesasge_Instance_Identifier;
U16 Message_Type;
U32 Message_Length;
S16 Stream_ID;
};
and
final message
struct STANAG_Message
{
struct STANAG_Message_Header st_mh;
char * Message_Data;
U32 checksum;
};
then how tio put this into a UDP Packet