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

Michael Rogers michael at briarproject.org
Fri Feb 13 10:53:47 EST 2015


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

On 02/02/15 16:51, Nathan of Guardian wrote:
> I think this all works without being on a WiFi LAN of any kind. It
> is similar to the code I have in Gilga.

It turns out that my peer-discovery code does almost exactly the same
thing as FireChat. If you run peer-discovery within range of a
FireChat device you'll see something like this:

Discovered TXT record:
	Android_3a39 1e:66:aa:dc:95:88
	firechat._firechat._tcp.local.
	channel = 15
	mac = 1C:66:AA:DC:95:87

Whereas for a peer-discovery peer it would show this:

Discovered TXT record:
	Android_3a39 1e:66:aa:dc:95:88
	foo._example._tcp.local.
	bt = 1C:66:AA:DC:95:87

In both cases, the Bluetooth MAC address is published in a DNS TXT
record via Wi-Fi Direct service discovery. Reverse engineering the
rest of the FireChat protocol is left as an exercise for the reader. ;-)

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

iQEcBAEBCAAGBQJU3h4LAAoJEBEET9GfxSfMOwYH/2lYNmJ3hCWt8rlc0YvSxn4K
2Idv0REYzn2LzDymSlSBaFFfuXDtG2Ub7LkyB0uAUGNT7AhFiIKWAdVSP11Gi9O9
CQ0EZxAPu8g5oG1N1yoOBYQzcm1d7Di8iUSpF0UlNL44QGtsOQhMV9GqH3V0o+5w
5ZTbB/ozKQqXvOnwWTibXaesfiUL7OaO9L04aTev2K0egGS+KDrzba0lt1eoLvyd
eqEuVWvJO1b7LmweO3e3VqwL28Q2oTVkdewKXLMV1TYMsHrrKE7hBZE7KNDanOl6
oUJ6s1+6E213gUpNW3FemWca6/sm61MvfEg7mEyuVPHRXhJA2YEW/x8gvcej6Ng=
=EfuJ
-----END PGP SIGNATURE-----


More information about the guardian-dev mailing list