/* This is the header file for msgSender.c and msgWriter.c
 *
 * Dale Shpak
 * COMP 289 Lab #6 Solution
 * Nov 13, 2000
 */
#ifndef MSG_H
#define MSG_H

#include <sys/neutrino.h>
#include <stdio.h>
#include <stdlib.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_DATA    1
#define MSG_END     31

/* Define reply status values */
#define MSG_OK      0
#define MSG_INVALID 101
/* Can also use MSG_END as a reply */

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

#endif

