[Solved] CPE434 Lab5-Message Queue
5.0
1 customer review
Digital download
Digital download
$25.00
Message us on WhatsApp for payment or download support.
| # include <sys/types.h># include <sys/ipc.h> /*defines the ipc_perm structure */ stuct msqid_ds{stuct ipc_perm msg_perm; /* opertion permission struct */ struct msg *msg_first; /* ptr to first message on q */ struct msg *msg _last; /* ptr to last message on q */ ushort msg_cbytes; /* current # bytes on q */ ushort msg_qnum; /* current # of messages on q */ ushort msg_qbytes /* max # of bytes allowed on q */ ushort msg_lspid; /* pid of last msgsnd */ ushort msg_lrpid; /* pid of last msgrcv */ time_t msg_stime; /* time of last msgsnd */ time_t msg_rtime; /* time of last msgrcv */ time_t msg_ctime; /* time of last msgct1 (that changed the above) */ } |