|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
MQMD |
« View previous topic :: View next topic » |
Author |
Message
|
JasonE |
Posted: Wed Apr 28, 2004 1:01 am Post subject: |
|
|
Grand Master
Joined: 03 Nov 2003 Posts: 1220 Location: Hursley
|
MQLONG is 4 bytes
Filling in time...
Code: |
#include <cmqc.h>
void main() {
printf("Len MQMD : %d\n", sizeof(MQMD));
printf("Len XQH : %d\n", sizeof(MQXQH));
} |
Len MQMD : 364
Len XQH : 428 |
|
Back to top |
|
 |
Michael Dag |
Posted: Wed Apr 28, 2004 3:07 am Post subject: |
|
|
 Jedi Knight
Joined: 13 Jun 2002 Posts: 2607 Location: The Netherlands (Amsterdam)
|
Jason,
thanks!!!
so the total header for each and every message going to another Qmgr is 364+428 = 792 bytes.
So the 758 number I had in my head dates back a couple of years so I'll subtract 40...
and end up with 752 ... only off by 6 bytes... (no need for new memory after all...) _________________ Michael
MQSystems Facebook page |
|
Back to top |
|
 |
PeterPotkay |
Posted: Wed Apr 28, 2004 4:23 am Post subject: |
|
|
 Poobah
Joined: 15 May 2001 Posts: 7722
|
I went back at my program notes and saw that even though the program was originally compiled with the version 1 MQMD, I had planned for the version 2 just in case, and made the hold area big enough to accomadate either one. Sorry for the confusion. Looking at it quickly yesterday, I saw the hold area, saw the Version 1 copybook, and assumed they were equal. Hey, its been a few years since I even saw the program. I'm amazed I was able to even to find the thing! _________________ Peter Potkay
Keep Calm and MQ On |
|
Back to top |
|
 |
jstorni |
Posted: Fri Feb 03, 2006 6:27 am Post subject: MQMD and MQXQH |
|
|
Novice
Joined: 03 Feb 2006 Posts: 10
|
Hellow,
MQXQH includes the message descriptor structure MQMD, so the total size of the message payload is "only" the size of MQXQH.
Anybody can confirm this ?
I want to determine the total overhead of a message to calculate a network link size.
Thanks. |
|
Back to top |
|
 |
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|
|
|