9 years, 3 months ago.

Are all interrupts disabled in blocking mode of socket?

The tittle pretty much sums the question up. I am wondering how the blocking mode actually works. Does it disable all interrupts like timer, GPIO etc? I hope it does not mean that.

I went into socket.cpp and didn't find much about this. So please somebody with the knowledge lend me a hand.

Thanks. ZL

Question relating to:

1 Answer

9 years, 3 months ago.

Hi ZL,

In socket operation, I would not expect this to disable interrupts.

It is related to whether your calling function is "blocked" until the transaction is completed, or if your application will resume even as the transfer continues in the background.

google - socket blocking vs nonblocking offers many pages with more detail.

Accepted Answer

Thanks very much for the answer and direction. I should have googled it like I do on almost anything I don't know before posting the question.

posted by Zhiyong Li 17 Jan 2015