SOURCE FILE: protocol.h


/* A drastically over-simplified simulation of the contents of a
   message packet.  The fields are an id of a USER (0 or 1), and
   a serial number for a packet. */

typedef struct infoType
  {
     int userID ;
     int packetNum ; 
  } infoType ;

/* A structure for holding a packet buffer, along with all the
   apparatus to regulate its use.  */

typedef struct bufferType
  {

     infoType        info         ;

     /* You decide what fields you may want here for such things as status
        flags and/or semaphores.  Add code here to declare those fields. */

  } bufferType ;