home *** CD-ROM | disk | FTP | other *** search
- From: darcy@druid.uucp (D'Arcy J.M. Cain)
- Newsgroups: alt.sources
- Subject: Multi-user chat program missing file
- Message-ID: <1990Oct11.131128.23996@druid.uucp>
- Date: 11 Oct 90 13:11:28 GMT
-
- >from: darcy@druid.uucp (D'Arcy J.M. Cain)
-
- Oops! I forgot to include chat.h in the distribution. Here it is
-
- ------------------------ rip here ----------------------------
- /*
-
- chat.h
- Written by D'Arcy J.M. Cain
- West Hill, Ontario
- darcy@cain
- All rights reserved
-
- This is the header file for chat programs
-
- If NO_SH_ESC is defined, shell escapes are disabled.
-
- If NO_CHG_NAME is defined, users cannot change their display name from
- the default which is the login name.
-
- If NO_SHOW_USERS is defined, The /s command to show other users on the
- system is disabled.
-
- Some curses libraries in SV3.2 (and perhaps others) have a bug in that
- halfdelay does not work as advertised. To get around this define the
- constant HALFDELAY_BROKEN. This will cause code to be substituted which
- uses a 2 second alarm to check the queue for incoming messages. If you
- don't know if this is necessary on your system then compile without it
- and see if you can receive messages from others without hitting a key.
- If not then recompile with the constant defined.
-
- */
-
- #define MAX_CHATTERS 32
-
- typedef struct {
- short channel; /* for multiple chats on one system */
- char logname[32]; /* for display purposes */
- } CHATTER;
-
- void ch_send(char *s, int id);
- void chc_send(char *s);
- int ch_close(void);
- char *ch_init(void);
- int ch_get(char *s);
- int chk_q(void);
- --------------------------- end of chat.h -------------------------------
-
- --
- D'Arcy J.M. Cain (darcy@druid) |
- D'Arcy Cain Consulting | MS-DOS: The Andrew Dice Clay
- West Hill, Ontario, Canada | of operating systems.
- + 416 281 6094 |
-