file name: msgform.hpp
classification: simulation
contents: struct SSendData, struct SReplyData, struct STimeData,
struct SMsgPosition
use: the message structures used for clock synchronization messages
global items used:
struct
SMsgPosition: the structure is used for obtaining the length and position
of the clock value and area of the sender, which are automatically inserted
into the message buffer at arbitrary positions.
-
enum EItems: Macrostamp, Timestamp, Accuracy, Area, EItemCount
The enumerations must correspond to the entries in STimeData.
The last enumeration is for accounting purposes and must stay last even
if new items are added.
-
INT32 position[EItemCount]: the starting positions of the items
in the resulting message buffer
-
INT32 length[EItemCount]: the sizes of the items.
struct SReplyData:
the structure contains the data that is sent in the reply to a request
for delay measurement. In addition to the data of SSendData, the
following items are sent.
-
INT32 msReceive: the macrostamp at the reception of the requesting
message
-
INT32 tsReceive: the timestamp at the reception of the requesting
message
-
TRateTheta thetaMinus: the current minimal rate of the clock
-
TRateTheta thetaPlus: the current maximal rate of the clock
struct SSendData:
this structure contains the data that is sent in every clock synchronization
message.
-
INT32 msgID: the number of the message
-
INT32 mode: the mode of the message
-
SINT32 nodeID: the identifier of the sender node
struct STimeData:
the structure contains the items that are added to the message by the network
driver.
-
INT32 ms: the macrostamp at the time the message was transmitted
-
INT32 ts: the timestamp at the time the message was transmitted
-
INT32 acc: the accuracies at the time the message was transmitted
-
INT32 area: the area of the sender of the message
last modified: Fri Feb 5 18:56:27 1999