Jowett (guest)
 |
| 06/03/2008 10:46 AM |
Quote
Reply
Alert
|
When MsgType = 99 (Geneic Book Msg), and field NumBodyEntries > 1, what is the value of field 'MsgSize' since the 'Description' in specification does not tell us. |
|
|
|
|
Ariel Posts:163
 |
| 06/04/2008 4:43 PM |
Quote
Reply
Alert
|
| The msgsize will be the 16(packet header)+the sum of the messages in the body. So for example if there is only one message msg type 100 which is 32 bytes, then the msg size is 48 bytes. If there are two msg type 100 in the body then the message will be 16+32+32 which is 80 |
|
|
|
|
walter (guest)
 |
| 06/13/2008 3:25 PM |
Quote
Reply
Alert
|
| Is it 14+32=46 or 16+32=48 It says in the spec that a heartbeat message has msgSize of 14 and it is a full header. Thus it is 14+0???? |
|
|
|
|
venugopal Posts:4
 |
| 06/17/2008 4:20 PM |
Quote
Reply
Alert
|
Iam looking at the packets thru hexedit. the msgsize is always (sizeof(hdr) + sizeof(payload) - 2) thus to get the payload size, you have to do (msgsize - sizeof(hdr) + 2) |
|
|
|
|