home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The C Users' Group Library 1994 August
/
wc-cdrom-cusersgrouplibrary-1994-08.iso
/
listings
/
v_09_09
/
9n09107a
< prev
next >
Wrap
Text File
|
1990-07-30
|
913b
|
42 lines
/**********************************************************
***
*** LISTING 1
***
*** message.h
***
*** This header file contains the definitions that are
*** used by the sender.c (listing 2) and holder.c
*** (listing 3) programs.
***
**********************************************************/
/*
HOLDER_NAME defines the name that this program will
register with the operating system. sender.c will
determine the task id of this program by using the
name_locate function.
*/
#define HOLDER_NAME "holder"
/*
The following manifests define the types of messages
that will be assigned to the .mssg_type field of the
following structure.
*/
#define STORE 1
#define STORED 10
#define RETRIEVE 2
#define RETRIEVED 20
#define KILL 3
#define ERROR -1
#define MAX_MSG_SIZE 81
struct message {
int mssg_type;
char text[MAX_MSG_SIZE];
};