Sebastian,
 
Thank you for your help and such a quick response!  I will start to look through those files and try to figure it out. 
 
Once it's cross-compiled, do you then just place the dtnd binary in the assets directory of the ibrdtn project?  Also, would you mind to point me in the right direction of your cross-compilation method?  I have looked at the CodeSourcery tool, but I want to make sure that I'm doing it exactly as you do.
 
Thanks,
 
Justin
-------- Original Message --------
Subject: Re: [ibr-dtn] Android Apps Neighbor Discovery
From: Sebastian Schildt <schildt@ibr.cs.tu-bs.de>
Date: Wed, January 30, 2013 9:46 am
To: ibr-dtn <ibr-dtn@ibr.cs.tu-bs.de>
Cc: justin@gardettoengineering.com

Hi Justin,

in fact the Android version for Android is the same as the PC version, that is the IBR-DTN Code gets natively cross-compiled for Android. The Java part, just acts as an elaborate wrapper around the daemon: It will start, stop and interface with the daemon. So the Java code you found, deals with communicating with the IBR-DTN daemon through its API port to get a list of neighbors. So in that regard you can call it a client-server model.

The Neighbor Discovery Code itself is implemented in the IBR-DTN Daemon itself. If you want to start into digging into the daemons code your starting point would be the IPNDAgent and DiscoveryAgent code here http://www.ibr.cs.tu-bs.de/trac/ibr-dtn/browser/trunk/ibrdtn/daemon/src/net


MfG

Sebastian

Am 30.01.2013 um 15:34 schrieb <justin@gardettoengineering.com>:

> Hello,
>
> I am trying to locate the code that implements the neighbor discovery for the Android applications. So far, I have found:
> * NeighborList.java in ibrdtn/de.tubs.ibr.dtn.daemon calls service.getNeighbors().
> * getNeighbors() (found in the Java API (ibrdtnlib)) calls query("neighbor list") and _receiver.getList().
> * query(cmd) calls _writer.write(cmd) which writes out a buffer.
> * _receiver.getList() returns a list that seems to be populated by a read from the same socket used above.
>
> This seems to me to be the client side of the client/server model. I think I need to find the server side to find the neighbor discovery implementation. Any help would be much appreciated.
>
> Sincerely,
>
> Justin
> --
> !! 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.