Hi all.
I'm want to use a message queue to make communicate an application with a cgi. Following the msgsnd/msgrcv man page, queue buffers shall follow this type:
Code:
struct msgbuf {
long mtype;
char mtext[1];
};
Have anyone tryed with a custom structure? I'm thinking in something like this:
Code:
struct mymsgbuf {
long mtype;
int index;
char mtext[32];
};
Can I use my own send/receive message structure with msgsnd and msgrcv? I feel that the original structure is a bit limited for my needs.
Thanks for your help,
Daniel.