MAK Data Logger API Documentation for DIS
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Classes | Typedefs | Variables
extendPdu.h File Reference

Go to the source code of this file.

Classes

struct  NetTestPdu
 Making use of the existing testPdu in VR-Link to create this example. More...
 
class  ExtendPdu
 Define the ExtendPdu class. More...
 

Typedefs

typedef struct NetTestPdu NetTestPdu
 Making use of the existing testPdu in VR-Link to create this example. More...
 
typedef void(* ExtendPduCb )(ExtendPdu *pdu, void *usr)
 

Variables

const DtPduKind TestPduKind = DtPduKind(200)
 Extend the DtPduKind enumeration, adding our chosen value. More...
 

Typedef Documentation

typedef void(* ExtendPduCb)(ExtendPdu *pdu, void *usr)
typedef struct NetTestPdu NetTestPdu

Making use of the existing testPdu in VR-Link to create this example.

The TestPdu class will represent a hypothetical variable-length "Test PDU"

  • one that has three fields: an integer named "a", a variable-length array of integers named "b" whose cardinality is the value of "a", and a float called c. Define as much of the network representation structure as is possible with a C-style structure. The cardinality of "b" in the structure doesn't matter, since we'll only be casting buffers to pointers to this structure, and not creating instances of the structure or relying on its size. We won't be able to access "c" at all through the structure, since it comes after the variable length array "b". We will have to use byte-arithmetic to reach "c".

Variable Documentation

const DtPduKind TestPduKind = DtPduKind(200)

Extend the DtPduKind enumeration, adding our chosen value.

This is the number that ends up in the PDU header's kind field.


Document ID: Generated on Tue Nov 17 15:25:07 EST 2026 from SVN revision 298446
Copyright © 2026 MAK Technologies. All Rights Reserved (www.mak.com)