/* This is the header file for msgSender.c and msgWriter.c
 *
 * Dale Shpak
 * COMP 289 Lab #10 Solution
 * June 2, 2002
 */
#include <sys/neutrino.h>
#include <sys/siginfo.h>
#include <signal.h>
#include <stdio.h>
#include <stdlib.h>
#include <time.h>
#include <errno.h>

/* Define data types and buffer sizes */
#define MSG_HEADER  int
#define MSG_TYPE    char
#define MSG_SIZE    256

/* Define the known message types */
#define MSG_OK      0
#define MSG_DATA    1
#define MSG_END     31
#define MSG_INVALID 101

#define MSG_PULSE_ALIVE   73

typedef struct {
   MSG_HEADER  m_hdr;
   MSG_TYPE    m_data[MSG_SIZE];
} MESSAGE_CLIENT;

typedef union {
   MESSAGE_CLIENT client;
   struct _pulse  pulse;
} MESSAGE;

