Hi!
I'm working on the java part of the ibrdtn https://github.com/ibrdtn/ibrdtn/tree/master/java. Nice clean code which works fine.
Thanks, glad to hear =)
Nonetheless I have some difficulties to use received bundles. Indeed I cannot find a way to know to which EID a bundle had been sent neither how to use its payload outside of the thread https://github.com/ibrdtn/ibrdtn/blob/master/java/example/src/ibrdtn/example/api/AbstractAPIHandler.java printing in the LOG the bundle.
Well, if you have a look at https://github.com/ibrdtn/ibrdtn/blob/master/java/example/src/ibrdtn/example...
you'll find an example of how to process the bundle outside of the main receiver thread. It stores the received data in a Envelope Object (which is just a simple example, you can use your own), which contains both the payload data as well as the BundleID, which in turn contains the SingletonEndpoint source address.
Hope this helps! Happy new year, Julian
participants (1)
-
Julian Timpner