In this implementation, these functions return an error if the window
pointer is null, or if its timeout expires without having any data.
In this implementation, these functions return an error if the window
pointer is null, or if its timeout expires without having any data.