[sugar] ip4-address buddy property to be replaced by stream tubes

Simon McVittie simon.mcvittie
Thu Oct 25 11:24:11 EDT 2007


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Thu, 25 Oct 2007 at 10:37:50 -0400, Benjamin M. Schwartz wrote:
> Erik Blankinship wrote:
> > Record uses ip4-address, but we've just about completed Record Tubes
> > (and it is working great).
> 
> Should Activity developers assume that stream tubes will be available in both
> Gabble and Salut by OLPC 1.0?

Yes, I think you should. They work in Gabble at the moment, so you can
test collaboration, as long as you make sure you have Internet access.

They'll work in Salut (server-less link local collaboration) soon - we have a
branch in which they work, but I'm not very happy with the implementation, so
it's not in builds yet.

If you were previously using ip4-address, using the IPv4 socket type for
stream tubes will give you the nearest API match. I patched Read to use
stream tubes (patches are attached to #4927) if you want an example.

For something like Record it may be best to use a hybrid solution - D-Bus
tubes (because of their ability to broadcast) for new photos, and stream tubes
(because of their potentially higher efficiency) for newly joined
buddies to catch up with the activity state. That's entirely possible,
and I can probably help you with the API, although obviously fixing
up PS, Gabble and Salut will have to take priority for me.

    Simon
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: OpenPGP key: http://www.pseudorandom.co.uk/2003/contact/ or pgp.net

iD8DBQFHILUaWSc8zVUw7HYRAhTXAKCHuBkdvDOWzhyodPuzXjPypfWSbgCgkPpa
O4S+f2hf00k6RrQaJIf6KeI=
=uUlt
-----END PGP SIGNATURE-----



More information about the Sugar-devel mailing list