I have a couple of simple scripts that use NC to connect and send commands myself, and to be fair I find this step does indeed take around half a second or so to return. So my guess is that either TCP setup/teardown is too great an overhead and you'd be better using a permanent socket or, more likely, it just takes a little while for the lms to respond to this command. Maybe it actually sends the volume command to the player and won't acknowledge your command until it has done the whole round trip? Speculation on my part.
Best bet, in the circumstances, is to write a threaded piece of code that has one thread reading the buttons and setting an internal volume level, then a separate thread periodically updates this volume level to lms. ------------------------------------------------------------------------ drmatt's Profile: http://forums.slimdevices.com/member.php?userid=59498 View this thread: http://forums.slimdevices.com/showthread.php?t=105508 _______________________________________________ unix mailing list [email protected] http://lists.slimdevices.com/mailman/listinfo/unix
