On 12/01/2015 10:38 AM, Toralf Lund wrote:
Hi,
Is there a simple way to determine the actual size of a certain message,
or alternatively, the size of headers, the QPid "framing" etc., when
using the C++ messaging API?
I'm afraid not at present.
By "actual size" I mean the size of the
information that travels across the network, as opposed to the size in
memory occupied by a Message object and its data. If not, can any of the
QPid tools offer me some help?
The most accurate way would be to use wireshark or similar. A simpler
alternative is to turn on trace level logging for a test client and send
various messages. The sizes in the logging aren't 'complete' in that
they generally don't include things like 'frame headers', but they are
close and what is left out would be a fixed delta you could then add to
the reported amount.
I'm trying to find out how much is "added by QPid" to the raw message
data for a certain group of messages, as this may influence how much
data I want to pack into each message...
Is there a particular protocol version you care about (0-10 v 1.0)?
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]