home *** CD-ROM | disk | FTP | other *** search
/ ftp.wwiv.com / ftp.wwiv.com.zip / ftp.wwiv.com / pub / PPPBCKP / SRC / SRC20A01.ZIP / INSTMSG.H < prev    next >
C/C++ Source or Header  |  1999-03-11  |  2KB  |  47 lines

  1. /****************************************************************************/
  2. /*                                                                          */
  3. /*                             WWIV Version 4.3x                            */
  4. /*                Copyright (C) 1998 by WWIV Software Services              */
  5. /*                                                                          */
  6. /*      Distribution or publication of this source code, it's individual    */
  7. /*       components, or a compiled version thereof, whether modified or     */
  8. /*        unmodified, without PRIOR, WRITTEN APPROVAL of WWIV Software      */
  9. /*        Services is expressly prohibited.  Distribution of compiled       */
  10. /*            versions of WWIV is restricted to copies compiled by          */
  11. /*           WWIV Software Services.  Violators will be procecuted!         */
  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. #define INST_MSG_CLEANNET    4  /* should call cleanup_net */
  23. #define INST_MSG_CHAT        6  /* External chat request */
  24.  
  25. /****************************************************************************/
  26.  
  27. /*
  28.  * Structure for inter-instance messages. File would be comprised of headers
  29.  * using the following structure, followed by the "message" (if any).
  30.  */
  31.  
  32. typedef struct {
  33.   unsigned short
  34.     main,                    /* Message main type */
  35.     minor,                   /* Message minor type */
  36.     from_inst,               /* Originating instance */
  37.     from_user,               /* Originating usernum */
  38.     dest_inst;               /* Destination instance */
  39.   unsigned long
  40.     daten,                   /* Secs-since-1970 Unix datetime */
  41.     msg_size,                /* Length of the "message" */
  42.     flags;                   /* Bit-mapped flags */
  43. } inst_msg_header;
  44.  
  45. #endif
  46.  
  47.