The Sequence Toolkit
www.sequence-toolkit.com
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros
Classes | Macros | Typedefs
stk_smartbeat.h File Reference
#include "stk_common.h"
#include "stk_service.h"
#include <sys/time.h>
Include dependency graph for stk_smartbeat.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  stk_smartbeat_stct
 
struct  stk_smartbeat_svc_wire_stct
 

Macros

#define STK_SMARTBEAT_SEQ   0x3000000
 
#define STK_STCT_SVC_SMARTBEAT_WIRE   0x50000001
 

Typedefs

typedef stk_uint64 stk_checkpoint_t
 
typedef struct stk_smartbeat_stct stk_smartbeat_t
 
typedef struct
stk_smartbeat_ctrl_stct 
stk_smartbeat_ctrl_t
 
typedef struct
stk_smartbeat_svc_wire_stct 
stk_smartbeat_svc_wire_t
 

Detailed Description

This file provides definitions and typdefs etc required for smartbeats

Macro Definition Documentation

#define STK_SMARTBEAT_SEQ   0x3000000

Sequence ID for smartbeats

#define STK_STCT_SVC_SMARTBEAT_WIRE   0x50000001

ID of structure for data coming off the wire

Typedef Documentation

The Smartbeat checkpoint is atomically (lock-free) incremented so applications may use multiple threads to indicate liveness

It is a 64 bit unsigned integer

Control structure for smartbeat handling

Structure of smartbeat on the wire

The stk_smartbeat_t structure provides a time and checkpoint.

See Also
stk_service_last_smartbeat()