home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / top2src.zip / MAX2IPC.H < prev    next >
C/C++ Source or Header  |  1996-06-29  |  1KB  |  64 lines

  1. typedef unsigned char byte;
  2. #ifdef __OS2__
  3. typedef unsigned short int word;
  4. #else
  5. typedef unsigned int  word;
  6. #endif
  7. typedef unsigned long dword;
  8.  
  9. /* IPCxx.BBS header structure */
  10.  
  11. struct _cstat
  12. {
  13.   word avail;
  14.  
  15.   byte username[36];
  16.   byte status[80];
  17.  
  18.   word msgs_waiting;
  19.  
  20.   dword next_msgofs;
  21.   dword new_msgofs;
  22. };
  23.  
  24. struct _mcpcstat
  25. {
  26.   word avail;
  27.  
  28.   byte username[36];
  29.   byte status[80];
  30. };
  31.  
  32. /* Data element in IPCxx.BBS file (see MAX_CHAT.C) */
  33.  
  34. struct _cdat
  35. {
  36.   word tid;
  37.   word type;
  38.   word len;
  39.  
  40.   dword rsvd1;
  41.   word  rsvd2;
  42. };
  43.  
  44. struct _mcpcdat
  45. {
  46.   word tid;
  47.   word type;
  48.   word len;
  49.  
  50.   word dest_tid;
  51.   dword rsvd1;
  52. };
  53.  
  54. /* Types for _cdat.type */
  55.  
  56. #define CMSG_PAGE       0x00   /* "You're being paged by another user!"     */
  57. #define CMSG_ENQ        0x01   /* "Are you on this chat channel?"           */
  58. #define CMSG_ACK        0x02   /* "Yes, I AM on this channel!"              */
  59. #define CMSG_EOT        0x03   /* "I'm leaving this chat channel!"          */
  60. #define CMSG_CDATA      0x04   /* Text typed by used while in chat          */
  61. #define CMSG_HEY_DUDE   0x05   /* A normal messge.  Always displayed.       */
  62. #define CMSG_DISPLAY    0x06   /* Display a file to the user                */
  63.  
  64.