[sldev] Gesture client code Re: Anyone here with OpenCV experience?

Jan Ciger jan.ciger at gmail.com
Fri May 22 17:35:36 PDT 2009


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

Philip Rosedale wrote:
> Looks like DBus is TCP based - that still seems unneeded, I think we
> should use UDP,  what think?

UDP could work, however I do prefer a standard protocol over yet another
homegrown one. TCP is not a big issue in this case - most common use
case is a local server connecting to local viewer, so the latency
reduction in the case of packet loss compared to TCP is going to be a
non-issue. UDP will have little advantage here.

On the other hand, with DBus you get lot of advantages with being able
to script the viewer and call the APIs from other tools. With pure UDP
you would have to redo the whole protocol implementation each time.

Actually DBus uses Unix domain sockets, TCP and can use named pipes.
Future versions will probably use also shared memory as a transport.

However, DBus is intended for desktop scripting. That will work for an
occasional function call to trigger an animation or set the camera. On
the other hand, if you are anticipating streaming gobs of data (e.g.
live position tracking from camera, 30 times/second), it is likely not
the best choice - there I would go for VRPN (that is UDP-based).


Regards,

Jan
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Mandriva - http://enigmail.mozdev.org

iD8DBQFKF0TWn11XseNj94gRAohxAJ9CKC7/fr0mLeTqVs37qskwhLCBeACg1gJG
c3NiYGl/Q4aJ6esVV2Boycs=
=GrF8
-----END PGP SIGNATURE-----


More information about the SLDev mailing list