|
VR-Engage
2.2
|
This message is sent periodically between the client and server to ensure that the connection is still active. It contains no payload data and serves only as a keepalive mechanism. Both the client and server can send heartbeat messages, and both should respond to received heartbeat messages to confirm connectivity.
#include <rfxSystemMessage.h>
Public Member Functions | |
| DtHeartbeatMessage () | |
| virtual | ~DtHeartbeatMessage () |
| virtual int | messageSize () |
| virtual DtBaseMessage * | clone () |
Static Public Member Functions | |
| static DtBaseMessage * | decode (unsigned char *buffer, int length) |
Protected Member Functions | |
| virtual void | serialize (DtStreamWriter &writer) |
| virtual void | deserialize (DtStreamReader &reader) |
Additional Inherited Members |
| makRadarFx::DtHeartbeatMessage::DtHeartbeatMessage | ( | ) |
Default constructor.
Initializes a new heartbeat message with the appropriate message type
|
virtual |
Virtual destructor.
Cleans up any resources associated with the heartbeat message
|
virtual |
Gets the size of the encoded message in bytes.
Heartbeat messages have minimal size since they contain no payload data
Reimplemented from makRadarFx::DtBaseMessage.
|
static |
Decodes a byte array into a message object.
| buffer | Pointer to the encoded byte array |
| length | Length of the encoded byte array |
Static decoder function used by the message factory to create message objects from encoded data.
References makRadarFx::DtBaseMessage::DtBaseMessage().
|
virtual |
Creates a deep copy of this message.
Creates a new message instance that is an exact copy of this message. The caller is responsible for managing the memory of the returned object.
Implements makRadarFx::DtBaseMessage.
References makRadarFx::DtBaseMessage::DtBaseMessage().
|
protectedvirtual |
Serializes the message data to a stream writer.
| writer | Reference to the stream writer to write the data to |
Writes the message data to the provided stream writer. For heartbeat messages, this only writes the base message fields as there is no additional payload data.
Reimplemented from makRadarFx::DtBaseMessage.
|
protectedvirtual |
Deserializes message data from a stream reader.
| reader | Reference to the stream reader to read the data from |
Reads the message data from the provided stream reader. For heartbeat messages, this only reads the base message fields as there is no additional payload data.
Reimplemented from makRadarFx::DtBaseMessage.