Umdsdmonmsgs.h
6.12
|
Common message header structure included at the start of all messages. More...
#include <umdsdmonmsgs.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_UMDS_DMON_MAGIC, LBM_UMDS_DMON_ANTIMAGIC. | |
lbm_uint16_t | type |
Message type set by sender to indicate which kind of message this is. Possible values: one of the UMDSD_DSTATTYPE_* constants ( UMDS_DSTATTYPE_CFG, UMDS_DSTATTYPE_MALLINFO, 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 from the sending host's perspective. Value is "POSIX Time" (seconds since 1-Jan-1970), but in sending host's timezone. | |
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. | |
lbm_uint32_t | workerId |
The worker associated with this message. More... | |
lbm_uint32_t | connId |
The client connection associated with this message. More... | |
Common message header structure included at the start of all messages.
Except where indicated, all fields of type lbm_uintXX_t
should be byte-swapped if hdr.magic
is equal to LBM_UMDS_DMON_ANTIMAGIC.
lbm_uint32_t umdsd_dstat_msg_hdr_t_stct::connId |
The client connection associated with this message.
Set to UMDS_DSTAT_CONN_NA when the message is not associated with a specific client connection.
lbm_uint32_t umdsd_dstat_msg_hdr_t_stct::workerId |
The worker associated with this message.
Set to UMDS_DSTAT_WORKER_NA when the message is not associated with a specific worker.