| 12345678910111213141516171819202122232425262728293031323334 |
- #ifndef _commMsgQueue_H_
- #define _commMsgQueue_H_
-
- #include <stdio.h>
- #include <sys/types.h>
- #include <sys/ipc.h>
- #include <sys/msg.h>
- #include <string.h>
-
- #define PATHNAME "."
- #define PROJ_ID 0x0824
- enum{
- QUEUE_MSG_CLIENT, //客户端
- QUEUE_MSG_POST, //网页端
- QUEUE_MSG_UNLOCK, //开锁
- QUEUE_MSG_MAX //最大
- };
-
- struct msgbuf{
- long mtype;
- char mtext[1024];
- };
- int creatMsgQueue();
- int getMsgQueue();
- int destroyMsgQueue(int msgid);
- int sendMsg(int msgid, int type, const char *msg);
- int recvMsg(int msgid, int type, char *out);
-
-
-
-
- #endif
|