home *** CD-ROM | disk | FTP | other *** search
/ The Devil's Doorknob BBS Capture (1996-2003) / devilsdoorknobbbscapture1996-2003.iso / UTIL / WWIVSOR / INSTMSG.H < prev    next >
C/C++ Source or Header  |  1995-04-26  |  2KB  |  45 lines

  1. /*****************************************************************************
  2.  
  3.                 WWIV Version 4
  4.                     Copyright (C) 1988-1995 by Wayne Bell
  5.  
  6. Distribution of the source code for WWIV, in any form, modified or unmodified,
  7. without PRIOR, WRITTEN APPROVAL by the author, is expressly prohibited.
  8. Distribution of compiled versions of WWIV is limited to copies compiled BY
  9. THE AUTHOR.  Distribution of any copies of WWIV not compiled by the author
  10. is expressly prohibited.
  11.  
  12. *****************************************************************************/
  13.  
  14. #ifndef _INSTMSG_H_
  15. #define _INSTMSG_H_
  16.  
  17. /****************************************************************************/
  18.  
  19. #define INST_MSG_STRING      1  /* A string to print out to the user */
  20. #define INST_MSG_SHUTDOWN    2  /* Hangs up, ends BBS execution */
  21. #define INST_MSG_SYSMSG      3  /* Message from the system, not a user */
  22.  
  23. /****************************************************************************/
  24.  
  25. /*
  26.  * Structure for inter-instance messages. File would be comprised of headers
  27.  * using the following structure, followed by the "message" (if any).
  28.  */
  29.  
  30. typedef struct {
  31.   unsigned short
  32.     main,                    /* Message main type */
  33.     minor,                   /* Message minor type */
  34.     from_inst,               /* Originating instance */
  35.     from_user,               /* Originating usernum */
  36.     dest_inst;               /* Destination instance */
  37.   unsigned long
  38.     daten,                   /* Secs-since-1970 Unix datetime */
  39.     msg_size,                /* Length of the "message" */
  40.     flags;                   /* Bit-mapped flags */
  41. } inst_msg_header;
  42.  
  43. #endif
  44.  
  45.