Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

linux send call with flag MSG_DONTWAIT

On a blocking socket, if I set the flag MSG_DONTWAIT on a per call basis, will it effect the socket as a whole as in will the socket now behave like a non-blocking socket since this call is made with this flag?

I mean will the recv on the blocking socket starts behaving like a non-blocking recv?

Or will the effects of this flag will only last for the requested single send call?

like image 534
Medicine Avatar asked May 02 '26 22:05

Medicine


1 Answers

The flags supplied to sendmsg() will affect the sendmsg() call only.

like image 161
user207421 Avatar answered May 04 '26 13:05

user207421



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!