Go to the source code of this file.
|
| const DtPduKind | TestPduKind = DtPduKind(200) |
| | Extend the DtPduKind enumeration, adding our chosen value. More...
|
| |
| typedef void(* ExtendPduCb)(ExtendPdu *pdu, void *usr) |
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".
| 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.