![]() |
VR-Link API Documentation for DIS
|
Instances of DtDataPdu are used to send/receive data PDUs. More...
Inheritance diagram for DtDataPdu:
Collaboration diagram for DtDataPdu:Public Types | |
| enum | { PduStaticSize = 40 } |
Public Member Functions | |
| DtDataPdu (DtBufferPtr buffer=DtUSE_INTERNAL_BUFFER) | |
| Constructors. | |
| DtDataPdu (const DtNetDataPdu *initial, DtBufferPtr buffer=DtUSE_INTERNAL_BUFFER) | |
| virtual unsigned long | requestId () const |
| Set/Get the request id. | |
| virtual void | setRequestId (unsigned long id) |
| virtual void | printData () const |
| Print the data contained by this PDU. | |
| virtual void | printDataToStream (std::ostream &stream) const |
| Print the data to a stream. | |
Static Public Member Functions | |
| static DtPdu * | create (const DtNetPacket *initial, DtBufferPtr buffer=DtUSE_INTERNAL_BUFFER) |
| Create a DtDataPdu. | |
| static void | addCallback (DtExerciseConn *conn, DtDataPduCb cb, void *usr) |
| Add (register)/Remove (deregister) function to be called when pdu is received. | |
| static void | removeCallback (DtExerciseConn *conn, DtDataPduCb cb, void *usr) |
Protected Member Functions | |
| DtPduKind | internalGetPduKind () const |
| Returns the internal PDU kind. | |
| DtNetDataPduTail * | dataSection () const |
| Returns the data portion of the net structure. | |
Instances of DtDataPdu are used to send/receive data PDUs.
| DtDataPdu::DtDataPdu | ( | DtBufferPtr | buffer = DtUSE_INTERNAL_BUFFER | ) |
Constructors.
| DtDataPdu::DtDataPdu | ( | const DtNetDataPdu * | initial, |
| DtBufferPtr | buffer = DtUSE_INTERNAL_BUFFER |
||
| ) |
| static void DtDataPdu::addCallback | ( | DtExerciseConn * | conn, |
| DtDataPduCb | cb, | ||
| void * | usr | ||
| ) | [static] |
Add (register)/Remove (deregister) function to be called when pdu is received.
| static DtPdu* DtDataPdu::create | ( | const DtNetPacket * | initial, |
| DtBufferPtr | buffer = DtUSE_INTERNAL_BUFFER |
||
| ) | [static] |
Create a DtDataPdu.
Caller is responsible for deletion.
| DtNetDataPduTail* DtDataPdu::dataSection | ( | ) | const [protected, virtual] |
Returns the data portion of the net structure.
Implements DtPduWithData.
| DtPduKind DtDataPdu::internalGetPduKind | ( | ) | const [inline, protected, virtual] |
| virtual void DtDataPdu::printData | ( | ) | const [virtual] |
Print the data contained by this PDU.
Reimplemented from DtPduWithData.
| virtual void DtDataPdu::printDataToStream | ( | std::ostream & | stream | ) | const [virtual] |
Print the data to a stream.
Reimplemented from DtPduWithData.
| static void DtDataPdu::removeCallback | ( | DtExerciseConn * | conn, |
| DtDataPduCb | cb, | ||
| void * | usr | ||
| ) | [static] |
| virtual unsigned long DtDataPdu::requestId | ( | ) | const [virtual] |
Set/Get the request id.
| virtual void DtDataPdu::setRequestId | ( | unsigned long | id | ) | [virtual] |