2015-03-23 21:03:14 +00:00
|
|
|
|
|
|
|
#ifndef HS_MSG_H
|
|
|
|
#define HS_MSG_H
|
2015-02-26 15:02:31 +00:00
|
|
|
|
|
|
|
#define MAX_MSG_SIZE 4096
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
|
|
|
typedef struct {
|
|
|
|
|
|
|
|
char sim_name[48]; /* -- Sim/Task-group name msg is
|
|
|
|
coming from */
|
|
|
|
char hostname[48]; /* -- Machine name msg is coming from */
|
|
|
|
double ret; /* -- Run elapsed time */
|
|
|
|
int parent_child_num; /* -- Parent or child process number */
|
|
|
|
int msgsize; /* -- Size in bytes of following msg */
|
|
|
|
char datebuff[32]; /* -- Date and time string */
|
|
|
|
|
|
|
|
/* NOTE: msg[MAX_MSG_SIZE] MUST be the LAST
|
|
|
|
* element of this structure
|
|
|
|
*/
|
|
|
|
char msg[MAX_MSG_SIZE]; /* -- the message */
|
|
|
|
} HS_MSG;
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
2015-03-23 21:03:14 +00:00
|
|
|
|
|
|
|
#endif
|