?? 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 + -