My server and client structures are as follows:
struct server
{
long msgtype;
char find[20];
};
struct client
{
long msgtype;
char text[200];
};
I send a message from client program to the common message queue using msgsnd() function. I am facing difficulty in understanding this statement
If msgtyp is greater than zero, the first message of **type** msgtyp is received.
Does the type mean that when we use msgrcv() function the message received will be of type long (in this case). If so how is it possible to receive a structure in long?