[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
| Re: [mosquitto-dev] External loop with poll() | 
| Dear Roger & All, 
 thanks for the prompt answer! And if i call
      mosquitto_want_write() when returning, which event flag(s) i have
      to set? My current version looks like:
 https://gist.github.com/zgyarmati/fa2e2be391c664f35bd2ccac5c4cad3a
 but i have the same symptoms: when only POLLIN enabled, the client
      dis/reconnects to the broker, if POLLOUT also enabled, i get busy
      loop... Any further ideas
 
 
 Thanks in advance, regards
 Zoltan Gyarmati
https://zgyarmati.de On 2016-09-14 18:41, Roger Light wrote:
 
      Hi Zoltan, You should use mosquitto_want_write() (or a similar
        name, I'm on my phone and going on memory) to find out when the
        client wants to write. Cheers, Roger 
 
 _______________________________________________
mosquitto-dev mailing list
mosquitto-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/mosquitto-dev 
 | 
Attachment:
signature.asc
Description: OpenPGP digital signature