UM C API  6.16
tnwg_dstat_msg_hdr_t_stct Struct Reference

Common message header structure included at the start of all messages. Used by tnwg_dstat_mallinfo_msg_t, tnwg_dstat_portalstats_msg_t, tnwg_dstat_gatewaycfg_msg_t tnwg_pcfg_stat_grp_msg_t, tnwg_rm_stat_grp_msg_t. Except where indicated, all fields of type lbm_uintXX_t should be byte-swapped if hdr.magic is equal to LBM_TNWG_DAEMON_ANTIMAGIC. More...

#include <tnwgdmonmsgs.h>

Data Fields

lbm_uint16_t magic
 "Magic" value set by sender to indicate to the receiver whether byte swapping is needed. Possible values: LBM_TNWG_DAEMON_MAGIC, LBM_TNWG_DAEMON_ANTIMAGIC.
 
lbm_uint16_t type
 Message type set by sender to indicate which kind of message this is. Possible values: one of the TNWG_DSTATTYPE_* constants ( TNWG_DSTATTYPE_PORTSTAT, TNWG_DSTATTYPE_GATEWAYCFG, etc. )
 
lbm_uint16_t version
 Version of the message definition. See Daemon Statistics Versioning for general information on versioning of these structures.
 
lbm_uint16_t length
 Total length of the message, including this header. Note that some message types do not have fixed lengths.
 
lbm_uint32_t tv_sec
 Approximate timestamp when the message was sent. Represents local wall clock time in seconds after the Epoc (seconds since 1-Jan-1970 UTC).
 
lbm_uint32_t tv_usec
 Count of microseconds to be added to "tv_sec" to increase the precision of the timestamp. However, the accuracy of the timestamp is not guaranteed to be at the microsecond level.
 

Detailed Description

Common message header structure included at the start of all messages. Used by tnwg_dstat_mallinfo_msg_t, tnwg_dstat_portalstats_msg_t, tnwg_dstat_gatewaycfg_msg_t tnwg_pcfg_stat_grp_msg_t, tnwg_rm_stat_grp_msg_t. Except where indicated, all fields of type lbm_uintXX_t should be byte-swapped if hdr.magic is equal to LBM_TNWG_DAEMON_ANTIMAGIC.


The documentation for this struct was generated from the following file: