libmosquitto : Which code checks network connectivity

Asked by dpux

Hello,
Can someone please guide me to the code section (in libmosquitto) which checks for network connectivity ? I need to register some custom callbacks from there.

Thanks in anticipation !

Question information

Language:
English Edit question
Status:
Answered
For:
mosquitto Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Roger Light (roger.light) said :
#1

If the network fails, read() and write() will fail with read_length == 0 in mosquitto_loop_read() and/or mosquitto_loop_write().

Can you help with this problem?

Provide an answer of your own, or ask dpux for more information if necessary.

To post a message you must log in.