/* file: message.h * author: Robert S. Laramee * class: cs720/820 * date started: 23 Apr 98 * date "finished": 04 May 98 * project: assignment 5 * description: This file contains the data structure definitions used * in assignment 5 for the client.c and server.c files. */ #define MAX_MSG 2053 #define MAX_NAME 80 #define MAX_ARG 10 /* Request types */ #define MSG_QUIT 0 #define MSG_CREATE 1 #define MSG_READ 2 #define QUIT 3 #define SUCCESS 4 #define UNSUCCESS 5 #define REQUEST struct request #define RESPONSE struct response /* You may modify this request structure */ REQUEST { char client_msgQ_name[MAX_NAME]; int request_type; char file_name[MAX_ARG]; unsigned long mode_or_offset; unsigned long num_bytes; }; /* You may modify this response structure */ RESPONSE { int status; char data[MAX_MSG]; };