Wait for data to be available on the socket.

Synopsis

Declared in <torcontrol.h>

bool
WaitForData(std::chrono::milliseconds timeout);

Return Value

true if data is available, false on timeout or error

Parameters

Name

Description

timeout [in]

Maximum time to wait

Created with MrDocs