- Change the synchronous buffer size to 0 and see what happens. Figure out a way to make the code work with a zero buffer.
- Add a third receive call to the asynchronous code. Witness the block.
- Take a look at the state of select. At the time of writing, there's a macro, std::select!, which is a rather concise way of defining select loops. Give it a try.
With Safari, you learn the way you learn best. Get unlimited access to videos, live online training,
learning paths, books, interactive tutorials, and more.