home *** CD-ROM | disk | FTP | other *** search
/ The World of Computer Software / World_Of_Computer_Software-02-385-Vol-1of3.iso / s / sep91.zip / 9N09107A < prev    next >
Text File  |  1990-07-31  |  913b  |  42 lines

  1. /**********************************************************
  2. ***
  3. ***                        LISTING 1
  4. ***
  5. ***                        message.h
  6. ***
  7. ***        This header file contains the definitions that are
  8. ***        used by the sender.c (listing 2) and holder.c 
  9. ***        (listing 3) programs.
  10. ***
  11. **********************************************************/
  12.  
  13. /*
  14.     HOLDER_NAME defines the name that this program will
  15.     register with the operating system.  sender.c will
  16.     determine the task id of this program by using the
  17.     name_locate function.
  18. */
  19.  
  20. #define HOLDER_NAME        "holder" 
  21.  
  22. /*
  23.     The following manifests define the types of messages
  24.     that will be assigned to the .mssg_type field of the
  25.     following structure.
  26. */
  27.  
  28. #define STORE            1
  29. #define STORED            10
  30. #define RETRIEVE        2
  31. #define RETRIEVED        20
  32. #define KILL            3
  33. #define ERROR            -1
  34.  
  35. #define MAX_MSG_SIZE    81
  36.  
  37. struct message {
  38.     int mssg_type;
  39.     char text[MAX_MSG_SIZE];
  40.     };
  41.  
  42.