[guardian-dev] Connecting to nearby peers without user interaction

Michael Rogers michael at briarproject.org
Mon Feb 2 12:41:50 EST 2015


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

On 02/02/15 16:51, Nathan of Guardian wrote:
> On Mon, Feb 2, 2015, at 05:09 AM, Hans-Christoph Steiner wrote:
>> 
>> Sounds intriguing.  If you want to do the wifi service discovery
>> on < android-16, there is jmdns.  We had problems with the
>> Android service discovery stuff when we added it to FDroid.  It
>> would randomly hang and things like that.  jmdns seemed more
>> reliable, but perhaps the Android SD stuff is somehow integrated
>> into WiFi-Direct in a way that jmdns is not.
> 
> I think this all works without being on a WiFi LAN of any kind. It
> is similar to the code I have in Gilga.

Yup, this uses wifi direct to discover peers and Bluetooth or ordinary
wifi to connect to them. No user confirmation is required for
discovery or connection, unlike using Bluetooth or wifi direct alone.

I think I have a solution for connecting via wifi direct instead of
ordinary wifi, again without user confirmation, but I won't be able to
test it till tomorrow.

jmdns could be useful for APIs 14-15, which support wifi direct but
not the service discovery stuff. We might be able to get jmdns working
over the wifi direct interface, which uses a link-local IPv6 address.

Cheers,
Michael
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)

iQEcBAEBCAAGBQJUz7beAAoJEBEET9GfxSfMJ+AIAJgcken8KLDmlcXE3Ro7VUWy
QohBwpoSrBEt4xvBJdX/AK9B2zoLX6Pja4+/q8L41bypk+AVWVah6fzz7oQhK3QC
Ki+uquf/wI0Oe8E4kl6V8rb9/oLgcmHK1TLfnRzUAFGiqQcCjOg1FjfIswemm+AH
GK48yVSabCcBMaky1gr/J2Q0bNkYJKZax1jPo64fsK4zSc+FXIzOAqULFwjL+A7W
hpuaTdkxLackE3QQeijAlKYuEX2mTbkj6MHiKvVmjjD7Ow4YTTQLxl4hgKSPOM53
pNLemScIBWv3Oh7k80CB0fIaMOeznYiV1SujowpiiIGrjuQ2aur8oIG+rCgfDtY=
=Lu3C
-----END PGP SIGNATURE-----


More information about the Guardian-dev mailing list