Re: [Mosquitto-users] Sending reload signals from java

2012-12-12 Thread Prashant Kedia
Hi Roger/Josh, I am also having the same issue on windows and I was wondering if I can initiate a monitor on mosquitto configuration file directory, through this plugin (using windows FindFirstChangeNotification ), so that whenever any of the configuration file changes, monitor will capture the ev

[Mosquitto-users] using libmosquitto in an external event loop

2012-12-12 Thread Bart Van Der Meerssche
Hello list, I'm currently writing Lua bindings for libmosquitto [1]. Since Lua does not support preemptive multithreading, using mosquitto_loop_start is not an option. As suggested in the libmosquitto documentation, I'm integrating mosquitto_loop_read/write/misc into a Lua event loop instead.

Re: [Mosquitto-users] using libmosquitto in an external event loop

2012-12-12 Thread andypipe...@gmail.com
You know that the Eclipse Paho project has a Lua client due to hit Git within days, right? On Wednesday, December 12, 2012, Bart Van Der Meerssche wrote: > Hello list, > > I'm currently writing Lua bindings for libmosquitto [1]. Since Lua does > not support preemptive multithreading, using mosqui

Re: [Mosquitto-users] using libmosquitto in an external event loop

2012-12-12 Thread Bart Van Der Meerssche
Hi Andy^2, My use case includes listening on multiple sockets/pipes/devs simultaneously, processing and then passing on the message. mqtt_lua is not evented AFAIK. You need to call mqtt_client:handler() every second or so, much like mosquitto_loop. I like the fact that libmosquitto allows lo