📄 msg_queue.h
字号:
#ifndef _MSG_QUEUE_H_
#define _MSG_QUEUE_H_
#define MSGQUE_RECV_TIMEOUT 1000
#define MAX_MSGQUE_LENGTH 4096
#define SEND_RETRY 3
typedef struct {
long mtype;
char mtext[MAX_MSGQUE_LENGTH];
}T_MsgBuf;
int OpenMsgQueue (char * path);
int SendMsg (int msgId, long type, char *buf, int len);
int IsMsgReady (int msgId, long mtype);
int ReceiveMsg (int msgId, long type, char * buf, int length);
int SendAndReceiveMsg (int SendId, int RecvId, char *SendBuffer, int SendLen, int sendType,
char *ReceiveBuffer, int ReceiveLen, int ReceiveType, int TimeOut);
int ClearMsg (int msgId, int type);
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -