Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [mosquitto-dev] What is the significance of calling _mosquitto_socket_nonblock if sock is blocking

Hi Zinahe,

I've just replied on the ticket[1], please see here for the full answer.

In short, the function _mosquitto_try_connect must always return a non-blocking socket but set the non-blocking either before connecting or just after, depending if caller wants to wait (block) during the connection or do a "asynchronous" connection (cf mosquitto_connect_async).

Hope this help you.

Regards,

Pierre


Le 02/01/2018 à 18:07, Zinahe Asnake a écrit :
Hi all,

I'm new to this ML and not familiar with the posting protocol (if any). I'm trying to understand the libmosquito source code, particularly the core library. I have some background in C and socket programming in Linux.

I have posted a question on https://github.com/eclipse/mosquitto/issues/663

I was hoping is someone can help me explain what's going on in that particular section.

Regards,


_______________________________________________
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


Back to the top