-
Notifications
You must be signed in to change notification settings - Fork 16
PDU
Struct container for all information that is contained inside of all DIS PDUs. The base form of a PDU within the plugin.
struct FPDU
- CoreMinimal
- UObject/NoExportTypes.h
- <dis6/Pdu.h>
- DISEnumsAndStructs.h
Type | Name | Description |
---|---|---|
uint8 | ExerciseID | The DIS Exercise ID that this PDU is associated with |
uint8 | Length | Length, in bytes, of the PDU |
uint8 | Padding | Zero-filled array of padding |
EPDUType | PduType | Type of pdu, unique for each PDU struct |
uint8 | ProtocolFamily | Value that refers to the protocol family, e.g. SimulationManagement, etc. |
uint8 | ProtocolVersion | The version of the protocol. 5=DIS-1995, 6=DIS-1998. |
uint8 | Timestamp | Timestamp, either relative or UTC. This field shall specify the time which the data in the PDU is valid. |
Name | Description |
---|---|
FPDU() | Default constructor |
Name | Description |
---|---|
~FPDU() | Default destructor |
Return | Name | Description |
---|---|---|
TArray<uint8> | DISDataStreamToBytes(DIS::DataStream DataStream) | Converts a DIS DataStream to an array of bytes. |
SetupFromOpenDIS(DIS::DetonationPdu* PDUIn) | Converts an OpenDIS Pdu struct to an FPDU struct. | |
TArray<uint8> | ToBytes() | Conversion to an array of bytes. Allows for an FPDU struct to be sent out with a UDP send socket. |
ToOpenDIS(DIS::DetonationPdu& PDUOut) | Conversion to OpenDIS Pdu struct |
uint8 ExerciseID
The DIS Exercise ID that this PDU is associated with.
Category: GRILL DIS|Structs|PDUs
uint8 Length
Length, in bytes, of the PDU.
uint8 Padding
Zero-filled array of padding.
EPDUType PduType
Type of pdu, unique for each PDU struct.
uint8 ProtocolFamily
Value that refers to the protocol family, e.g. SimulationManagement, etc.
uint8 ProtocolVersion
The version of the protocol. 5=DIS-1995, 6=DIS-1998.
uint8 Timestamp
Timestamp, either relative or UTC. This field shall specify the time which the data in the PDU is valid.
FPDU()
Default constructor.
virtual ~FPDU()
Default destructor.
TArray<uint8> DISDataStreamToBytes
(
DIS::DataStream DataStream
)
Converts a DIS DataStream to an array of bytes.
Parameter | Description |
---|---|
DataStream | The DIS DataStream to convert to an array of bytes. |
Returns |
---|
An array of bytes containing the information from the given DIS DataStream. |
void SetupFromOpenDIS
(
DIS::Pdu* PDUIn
)
Converts an OpenDIS Pdu struct to an FPDU struct.
Parameter | Description |
---|---|
PDUIn | The OpenDIS Pdu struct to convert. |
void ToOpenDIS
(
DIS::DetonationPdu& PDUOut
)
Conversion to an array of bytes. Allows for an FPDU struct to be sent out with a UDP send socket.
Parameter | Description |
---|---|
PDUOut | The OpenDIS Pdu struct representation of this FPDU. |
virtual TArray<uint8> ToBytes() override
Conversion to OpenDIS DetonationPdu struct
Returns |
---|
An array of bytes containing the information from this FPDU. |