title: msgtype member in Message Queues
body: <p>My server and client structures are as follows:   </p>
  
  <pre><code> struct server
  {
    long msgtype;
    char find[20];
  
  };
  struct client
  { 
      long msgtype;
      char text[200];
  };
  </code></pre>
  
  <p>I send a message from client program to the common message queue using msgsnd() function.
  I am facing difficulty in understanding this statement</p>
  
  <pre><code>If msgtyp is greater than zero, the first message of **type** msgtyp is received.
  </code></pre>
  
  <p>Does the <strong>type</strong> 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?</p>