Hello Johannes.
After your last advise I could make my modifications in the code and create and install the new packages in my router, the problem was that the code didn't work as expected. After a lot research and "old school" debugging (writing a lot of printf in the code) I ended with a couple of questions of how your original code works. I hope you can help me with these:
- About the dtnsend tool. As far as I see, when you send a file using this tool it follows the next process (correct me if anything it's wrong please:
1. We copy the options we passed to argv to the bundle b. (dtnsend.cpp) 2. We send the bundle b to the client through "client << b" (dtnsend.cpp) 3. The client, who has done client.connect() before, has the _receiver.start() working. (client.cpp) 4. I suppose, step 3 calls for the Client::AsyncReceiver::run(). (client.cpp) 5. Now, the client sends the information to a variable and the client receive it with "_client >> b" and "_client.received(b)". (client.cpp) 6. Finally, when the client receives the bundle it makes an "_inqueue.push(b)" to put it in the queue (client.cpp)
My questions are:
- What kind of storage is that queue? The client should not store the bundles in the router using the MemoryStorageBundle.cpp or SimpleStorageBundle.cpp?
- I've found that the dtnsend only sends the bundle to the client, but the client seems to work only with the queues. How the client interacts with the storage you have defined in the conf file and where the priority sort should be done?
Thanks in advance.
Alex López.
2013/1/17 Johannes Morgenroth morgenroth@ibr.cs.tu-bs.de
Hello Alex.
The OpenWRT packages are build from the release archives. The Makefiles and the additional stuff for OpenWRT are available in the GIT or SVN repository: http://www.ibr.cs.tu-bs.de/svn/ibr-dtn/trunk/recipes/openwrt/
Kind regards, Johannes Morgenroth
-------- Weitergeleitete Nachricht -------- Von: Alex López lopalex87@gmail.com An: ibr-dtn@ibr.cs.tu-bs.de Betreff: [ibr-dtn] Compiling IBRDTN for OpenWRT Datum: Tue, 15 Jan 2013 14:24:22 +0100
Hello,
I'm trying to compile the 0.8.0v of ibrdtn, ibrdtnd, ibrdtn-tools and ibrcommon using the OpenWRT toolchain. Looking for accomplish this, some doubts came to my mind, could you help me please?
1.- I have found (and already installed and working) your ibrdtn packages from
http://www.ibr.cs.tu-bs.de/projects/ibr-dtn/releases/openwrt/10.03.1/ar71xx/ . This packages are compiled using the source code from http://www.ibr.cs.tu-bs.de/projects/ibr-dtn/releases/ ".tar.gz" files or are you using an specific code for OpenWRT? I'm asking this because I've found that your ibrdtn seems integrated with the OpenWRT config (using the UCI) and you have the /etc/init.d/ibrdtnd script already.
2.- As there are already .ipk packages for OpenWRT I was looking for the Makefile you used to compile them but I haven't found it. It's somewhere in the repository?
Thank you in advance.
Best Regards, Alex Lopez -- !! This message is brought to you via the `ibr-dtn' mailing list. !! Please do not reply to this message to unsubscribe. To unsubscribe or adjust !! your settings, send a mail message to ibr-dtn-request@ibr.cs.tu-bs.de !! or look at https://www.ibr.cs.tu-bs.de/mailman/listinfo/ibr-dtn.
-- !! This message is brought to you via the `ibr-dtn' mailing list. !! Please do not reply to this message to unsubscribe. To unsubscribe or adjust !! your settings, send a mail message to ibr-dtn-request@ibr.cs.tu-bs.de !! or look at https://www.ibr.cs.tu-bs.de/mailman/listinfo/ibr-dtn.