当前位置: 技术问答>linux和unix
使用消息队列遇到的问题!
来源: 互联网 发布时间:2015-11-09
本文导语: #define MSGLEN 10 struct my_msg{ int msg_type; char msg_data[MSGLEN]; }; int main(void) { int msgqid; struct ipphone_msg snd_msg,rcv_msg; struct msqid_ds stat; msgqid = msgget(IPC_PRIVATE, 0); if(msgqid
#define MSGLEN 10
struct my_msg{
int msg_type;
char msg_data[MSGLEN];
};
int main(void)
{
int msgqid;
struct ipphone_msg snd_msg,rcv_msg;
struct msqid_ds stat;
msgqid = msgget(IPC_PRIVATE, 0);
if(msgqid
struct my_msg{
int msg_type;
char msg_data[MSGLEN];
};
int main(void)
{
int msgqid;
struct ipphone_msg snd_msg,rcv_msg;
struct msqid_ds stat;
msgqid = msgget(IPC_PRIVATE, 0);
if(msgqid