Questions: Size of bundles and multiple files in single bundle
Hi,
I have a question which might be too simple, but we have searched and cannot find the answer (and I don't want to spam the mailing list). We want to register in a special log file the size of the bundles (in bits or bytes), but we cannot find the variable that contains that information. Do you have any idea which variable that is or how we can find it?
By the way, another question: suppose we send multiple files from one device to the same destination and these files are stored until a neighboring node or the destination becomes available. In that situation does IBR-DTN encapsulate multiple files in a single bundle? I suppose not, but I would like to clarify that.
Thank you,
Romeu
Am 24.04.2014 15:54, schrieb Romeu Monteiro:
I have a question which might be too simple, but we have searched and cannot find the answer (and I don't want to spam the mailing list). We want to register in a special log file the size of the bundles (in bits or bytes), but we cannot find the variable that contains that information. Do you have any idea which variable that is or how we can find it?
Since version 0.12, the payload size is part of each BundleID, MetaBundle, or Bundle instance. You can get it by calling getPayloadLength(). To add that data to the logs, you can modify the getMessage() method of your favorite event. E.g. BundleEvent.
https://github.com/ibrdtn/ibrdtn/blob/master/ibrdtn/daemon/src/core/BundleEv...
By the way, another question: suppose we send multiple files from one device to the same destination and these files are stored until a neighboring node or the destination becomes available. In that situation does IBR-DTN encapsulate multiple files in a single bundle? I suppose not, but I would like to clarify that.
As you assume, it does not do that.
Kind regards, Johannes
participants (2)
-
Johannes Morgenroth
-
Romeu Monteiro