[linux-audio-dev] liblo method handler lookup logic

From: David Olofson <david@email-addr-hidden>
Date: Thu Jan 26 2006 - 20:25:14 EET

Hacked some test code here and discovered something "interesting" with
lo_server_add_method() and method handling. If I try to do it like in
the examples and add the default/debug ("match all") method first, it
gets called for every incoming message, before the real handler is
called. That is, I see an error message - and then the correct method
handler is invoked anyway.

Looking quickly at the code, I'd actually expect this behavior, as
lo_server_add_method() does indeed add methods at the end of the
list.

Trying the examples again, I realize that they demonstrate this
behavior as well, so maybe it's not just my code doing something
funny. :-)

This is with liblo 0.22 on Gentoo/AMD64.

//David Olofson - Programmer, Composer, Open Source Advocate

.------- http://olofson.net - Games, SDL examples -------.
| http://zeespace.net - 2.5D rendering engine |
| http://audiality.org - Music/audio engine |
| http://eel.olofson.net - Real time scripting |
'-- http://www.reologica.se - Rheology instrumentation --'
Received on Fri Jan 27 00:15:05 2006

This archive was generated by hypermail 2.1.8 : Fri Jan 27 2006 - 00:15:05 EET