← Back to team overview

u1db-discuss team mailing list archive

Re: [Ubunet-discuss] Preferred C HTTP Library

 

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

On 02/16/2012 10:38 AM, John Arbash Meinel wrote:
> I've gotten to the point with our U1DB C implementation that I need
> to start working on synchronization over the network. We are going
> to be synchronizing via HTTP, so I would like to have a reasonably
> simple HTTP library to do the heavy lifting.
> 
> Samuele mentioned libsoup, though that seems to be specifically
> tied into GNOME, which makes it less attractive for a
> cross-platform application.
> 
> One option is to have multiple implementations, each platform 
> specific, but I'd really rather avoid that, since it means more
> code to maintain overall.

On further thinking, it would make sense a lot of sense to have the
network code separated; most users adding U1DB support to their code
will very likely have some constraint for the network library because
of the mainloop used in their application (either glib or qt, or some
other). This applies if U1DB chooses an async model, which I assume is
the case.

If U1DB uses a synchronous model then the programmer using it will
likely have to make all calls inside threads, and that's not desirable
from a point of view of desktop applications. (but perhaps is for
other uses).

cheers,
- -- 
alecu
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk89ZocACgkQbJhIVsjvPY2E+wCeI3gyIMqRXBebM1cSuefGUbk5
a90AoJMdub9xRWu64VhcajXz2hd/d2pO
=qf+q
-----END PGP SIGNATURE-----


References