Wait for data to be available on the socket.
Declared in <torcontrol.h>
<torcontrol.h>
bool WaitForData(std::chrono::milliseconds timeout);
true if data is available, false on timeout or error