home *** CD-ROM | disk | FTP | other *** search
/ Source Code 1992 March / Source_Code_CD-ROM_Walnut_Creek_March_1992.iso / usenet / altsrcs / 2 / 2002 / chat.h < prev    next >
Encoding:
C/C++ Source or Header  |  1990-12-28  |  1.1 KB  |  42 lines

  1. /*
  2.  
  3. chat.h
  4. Written by D'Arcy J.M. Cain
  5. West Hill, Ontario
  6. darcy@cain
  7. All rights reserved
  8.  
  9. This is the header file for chat programs
  10.  
  11. If NO_SH_ESC is defined, shell escapes are disabled.
  12.  
  13. If NO_CHG_NAME is defined, users cannot change their display name from
  14. the default which is the login name.
  15.  
  16. If NO_SHOW_USERS is defined, The /s command to show other users on the
  17. system is disabled.
  18.  
  19. Some curses libraries in SV3.2 (and perhaps others) have a bug in that
  20. halfdelay does not work as advertised.  To get around this define the
  21. constant HALFDELAY_BROKEN.  This will cause code to be substituted which
  22. uses a 2 second alarm to check the queue for incoming messages.  If you
  23. don't know if this is necessary on your system then compile without it
  24. and see if you can receive messages from others without hitting a key.
  25. If not then recompile with the constant defined.
  26.  
  27. */
  28.  
  29. #define        MAX_CHATTERS    32
  30.  
  31. typedef struct {
  32.     short    channel;        /* for multiple chats on one system */
  33.     char    logname[32];    /* for display purposes */
  34. } CHATTER;
  35.  
  36. void    ch_send(char *s, int id);
  37. void    chc_send(char *s);
  38. int        ch_close(void);
  39. char    *ch_init(void);
  40. int        ch_get(char *s);
  41. int        chk_q(void);
  42.