Hello Johannes,
I did as you said, however, I didn't find a method to get the endpoint name. For example, i have a list of neighbours called "neighbours" (List<Node> neighbours = mClient.getDTNService().getNeighbors();), I was hoping there would be something like "neighbours.get(0).endpoint.getAddress()" returning a String. What is the proper way of getting this String that contains the address?
Thanks for the help, Guilherme Rolim
On Fri, Jul 12, 2013 at 11:38 AM, Johannes Morgenroth < morgenroth@ibr.cs.tu-bs.de> wrote:
Hello Guilherme,
with the call to getNeighbors() you already were you want to be. The last missing step is to get the "endpoint" of the Nodes you got as list. The endpoint is a SingletonEndpoint object and contains the address you are looking for.
Kind regards, Johannes Morgenroth
Am 12.07.2013 01:39, schrieb Guilherme Rolim:
Hello,
I'm coding a application for android based on the DTN Ping example, however, I don't quite understand the use of some classes. For instance, I am trying to get the neighbour list from the DTN app and send a bundle to each neighbour but I don't know how to get their addresses (something like dtn://example). I've managed to get the neighbour list using the getDtnService() getNeighbors() methods from the client, but there was no method to get their addresses.
Could someone explain me the best way to do it? Also, is there any document that may help me understand the dtn api classes?
Thanks in advance, Guilherme rolim
-- !! 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 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.