home *** CD-ROM | disk | FTP | other *** search
/ Source Code 1992 March / Source_Code_CD-ROM_Walnut_Creek_March_1992.iso / usenet / altsrcs / 1 / 1939 < prev    next >
Encoding:
Internet Message Format  |  1990-12-28  |  1.8 KB

  1. From: darcy@druid.uucp (D'Arcy J.M. Cain)
  2. Newsgroups: alt.sources
  3. Subject: Multi-user chat program missing file
  4. Message-ID: <1990Oct11.131128.23996@druid.uucp>
  5. Date: 11 Oct 90 13:11:28 GMT
  6.  
  7. >from: darcy@druid.uucp (D'Arcy J.M. Cain)
  8.  
  9. Oops!  I forgot to include chat.h in the distribution.  Here it is
  10.  
  11. ------------------------ rip here ----------------------------
  12. /*
  13.  
  14. chat.h
  15. Written by D'Arcy J.M. Cain
  16. West Hill, Ontario
  17. darcy@cain
  18. All rights reserved
  19.  
  20. This is the header file for chat programs
  21.  
  22. If NO_SH_ESC is defined, shell escapes are disabled.
  23.  
  24. If NO_CHG_NAME is defined, users cannot change their display name from
  25. the default which is the login name.
  26.  
  27. If NO_SHOW_USERS is defined, The /s command to show other users on the
  28. system is disabled.
  29.  
  30. Some curses libraries in SV3.2 (and perhaps others) have a bug in that
  31. halfdelay does not work as advertised.  To get around this define the
  32. constant HALFDELAY_BROKEN.  This will cause code to be substituted which
  33. uses a 2 second alarm to check the queue for incoming messages.  If you
  34. don't know if this is necessary on your system then compile without it
  35. and see if you can receive messages from others without hitting a key.
  36. If not then recompile with the constant defined.
  37.  
  38. */
  39.  
  40. #define        MAX_CHATTERS    32
  41.  
  42. typedef struct {
  43.     short    channel;        /* for multiple chats on one system */
  44.     char    logname[32];    /* for display purposes */
  45. } CHATTER;
  46.  
  47. void    ch_send(char *s, int id);
  48. void    chc_send(char *s);
  49. int        ch_close(void);
  50. char    *ch_init(void);
  51. int        ch_get(char *s);
  52. int        chk_q(void);
  53. --------------------------- end of chat.h -------------------------------
  54.  
  55. -- 
  56. D'Arcy J.M. Cain (darcy@druid)     |
  57. D'Arcy Cain Consulting             |   MS-DOS:  The Andrew Dice Clay
  58. West Hill, Ontario, Canada         |   of operating systems.
  59. + 416 281 6094                     |
  60.