Receive every bundle which destination is a REGEX
Hi everyone !
I would like to know if there is a way to receive every bundle which destination are, i.e., dtn://node1/app0*. I would like the daemon to transfer every bundles sent to:
- dtn://node1/app0 - dtn://node1/app0? - dtn://node1/app0?p=2 - dtn://node1/app0?lang=en&p=4
I made some tests and the query is, as I expected, considered as a part of the URI. Thus to receive bundles sent to [dtn://node1/app0?lang=en] I need to add a registration "app0?lang=en" by doing (from CLI) $dtnrecv --name "app0?lang=en".
Do I really need to add a registration of each single combination of parameter of the query, or is there a way to hack the daemon, without changing its source-code, to do this ?
Thanks for further replies, have a nice day ! Best regards, --- Auzias Maël - auzias.net http://www.auzias.net/ PhD candidate http://auzias.net/?p=phd - IRISA Member of the Scientific Council http://auzias.net/Generation14/index-en.html GSM : *0033 695 118 774*
Hi.
Am 22.07.2014 11:04, schrieb Maël Auzias:
Do I really need to add a registration of each single combination of parameter of the query, or is there a way to hack the daemon, without changing its source-code, to do this ?
There is no way to achieve what you requested without changing the code. If you want to add such a feature, you can simply add query extensions to the EID class and change the compare methods according your needs.
Another way would be to add "*" capabilities to the registrations class.
Kind regards, Johannes Morgenroth
Thanks Johannes for the usual speed and accuracy of your replies. If ever I come to change the code to do so I'll make a pull-request on Github, though I'll keep going on another way around for this goal.
Have a nice day.
Best regards, --- Auzias Maël - auzias.net http://www.auzias.net/ PhD candidate http://auzias.net/?p=phd - IRISA Member of the Scientific Council http://auzias.net/Generation14/index-en.html GSM : *0033 695 118 774*
On Tue, Jul 22, 2014 at 3:53 PM, Johannes Morgenroth < morgenroth@ibr.cs.tu-bs.de> wrote:
Hi.
Am 22.07.2014 11:04, schrieb Maël Auzias:
Do I really need to add a registration of each single combination of parameter of the query, or is there a way to hack the daemon, without changing its source-code, to do this ?
There is no way to achieve what you requested without changing the code. If you want to add such a feature, you can simply add query extensions to the EID class and change the compare methods according your needs.
Another way would be to add "*" capabilities to the registrations class.
Kind regards, Johannes Morgenroth -- !! 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://mail.ibr.cs.tu-bs.de/listinfo/ibr-dtn.
A detailed issue / feature request on github is also welcome. Maybe someone like to implement that for you in the feature.
https://github.com/ibrdtn/ibrdtn/issues?state=open
Thanks!
Am 22.07.2014 15:57, schrieb Maël Auzias:
Thanks Johannes for the usual speed and accuracy of your replies. If ever I come to change the code to do so I'll make a pull-request on Github, though I'll keep going on another way around for this goal.
Have a nice day.
Best regards,
participants (2)
-
Johannes Morgenroth
-
Maël Auzias