VR-Link API Documentation for DIS
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
dataPdu.h
Go to the documentation of this file.
1 /*********************************************************************
2 ** Copyright (c) 1992-2013 MAK Technologies, Inc
3 ** All rights reserved.
4 *********************************************************************/
5 
8 
9 #pragma once
10 
11 #if DtDIS
12 
13 #include "hostStructs.h"
14 #include "pduWithData.h"
15 #include <vlpi/idTypeMap.h>
16 
17 
21 
23 typedef void (*DtDataPduCb)(DtDataPdu *pdu, void *usr);
24 
29 {
30 
31 public:
32  enum { PduStaticSize=40 };
33 
34 public:
37  DtDataPdu(const DtNetDataPdu *initial,
38  DtBufferPtr buffer = DtUSE_INTERNAL_BUFFER, DtPduFactory* pduFactory = 0);
39 
42  static DtPdu *create(const DtNetPacket *initial,
43  DtBufferPtr buffer = DtUSE_INTERNAL_BUFFER, DtPduFactory* pduFactory = 0);
44 
46  virtual unsigned long requestId() const;
47  virtual void setRequestId(unsigned long id);
48 
50  virtual void printData() const;
51 
53  virtual void printDataToStream(std::ostream& stream) const;
54 
55 public:
58  static void addCallback(
59  DtExerciseConn *conn, DtDataPduCb cb, void *usr);
60  static void removeCallback(
61  DtExerciseConn *conn, DtDataPduCb cb, void *usr);
62 
63 protected:
66 
69 };
70 
71 #endif
Instances of DtExerciseConn are used to provide an application&#39;s interface or connection to the netwo...
Definition: exerciseConnDIS.h:62
#define DT_DLL_VL
Definition: vlMachineTypes.h:108
void(* DtDataPduCb)(DtDataPdu *pdu, void *usr)
DtDataPdu callback function signature.
Definition: dataPdu.h:23
virtual void printData() const
Implements DtPdu&#39;s virtual function to print the PDU&#39;s data.
Definition: pduHeader.h:14
Definition: dataP4.h:53
virtual void printDataToStream(std::ostream &stream) const
Prints the contents of the PDU to the specified stream.
class DtPduFactory:
Definition: pduFactory.h:38
Definition: disEnums.h:260
DtPduKind internalGetPduKind() const
Returns the internal PDU kind.
Definition: dataPdu.h:65
DtPdu is the base class for all PDU&#39;s in VR-Link.
Definition: pdu.h:69
Definition: dataP4.h:61
This file is deprecated - Please see simulationAddress.h, entityIdentifier.h, entityType.h, burstDescriptor.h, and NetStructs.h.
DtPduWithData provides the base class for all of the simulation management PDU&#39;s that have fixed/vari...
Definition: pduWithData.h:23
struct DtBufferPlaceHolder * DtBufferPtr
Definition: vlBaseMsg.h:17
#define DtUSE_INTERNAL_BUFFER
Definition: vlBaseMsg.h:22
virtual DtNetDataPduTail * dataSection() const =0
Returns a pointer to the data section of the PDU - the part that starts with the numberOfFixedFields ...
DtPduKind
([UID 4]) - PDU Type
Definition: disEnums.h:238
DtDataPdu DtDataInteraction
Definition: dataPdu.h:19
Instances of DtDataPdu are used to send/receive data PDUs.
Definition: dataPdu.h:28

Document ID: Generated on Wed Mar 27 02:04:30 EDT 2024 from SVN revision 264570
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)