Most of that information is transport specific. I think I would prefer
the system stream based interface, so that unit tests can be easily
developed with predefined packets, and we could then test for correct
results even in a purely automated fashion of highly portable
regression tests.
I think, code wise, that is where I'm at now with this already, and I
haven't even gotten deep into implementation.
Cheers
Jan Ciger wrote:
-----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-----
|
_______________________________________________
Policies and (un)subscribe information available here:
http://wiki.secondlife.com/wiki/SLDev
Please read the policies before posting to keep unmoderated posting privileges