Skip to content

Commit

Permalink
Change TYPE number
Browse files Browse the repository at this point in the history
  • Loading branch information
uoo723 committed Jun 22, 2017
1 parent be7f46f commit 51bb77c
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions include/msg.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,18 @@
#define TYPE_SERVER 1
#define TYPE_CLIENT 2

#define TYPE_REQ_PUT 1
#define TYPE_REQ_GET 2
#define TYPE_REQ_REMOVE 3
#define TYPE_RES_GET 4
#define TYPE_QUIT 5
#define TYPE_REQ_PUT 10
#define TYPE_REQ_GET 20
#define TYPE_REQ_REMOVE 30
#define TYPE_RES_GET 40
#define TYPE_QUIT 50

#define NODATA -1

typedef struct msgbuf {
/* message queue type */
long mtype;
/* custom type */
long type;
unsigned int key;
char value[VALUESIZE];
Expand Down

0 comments on commit 51bb77c

Please sign in to comment.