|
From: Nicholas J H. <nj...@ec...> - 2005-12-05 22:54:37
|
Hi, I have just updated CVS and added four new functions. lo_send_from(lo_address, lo_server, lo_timetag, path, type, ...) lo_send_message_from(lo_address, lo_server, lo_message ) lo_send_bundle_from( lo_address, lo_server, lo_bundle) lo_server_thread_get_server( lo_server_thread ) The purpose of the functions is to allow an application with multiple lo_servers to choose which socket a message is sent from. lo_send_from accepts an optional timetag argument, so it can also be used like lo_send_timestamped(). In small compensation for bulking up the liblo API, I have merged the duplicated code in lo_send_message and lo_send_bundle_from into a new static function called send_data. Unfortunately there is quite a lot of duplicated code in lo_send_internal, lo_send_from_internal and lo_send_timestamped_internal. Sadly these cannot be merged into a single function, as it would break binary compatibility. The other two of the functions cannot call lo_send_from_internal, because of the complications of variable numbers of arguments. I have also bumped up the version number of liblo in CVS, in preparation for the next release. Hope I haven't broken anything ! nick. |