[#TorControlConnection-WaitForData]
= xref:TorControlConnection.adoc[TorControlConnection]::WaitForData
:relfileprefix: ../
:mrdocs:

Wait for data to be available on the socket&period;

== Synopsis

Declared in `&lt;torcontrol&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
bool
WaitForData(std::chrono::milliseconds timeout);
----

== Return Value

true if data is available, false on timeout or error

== Parameters

[cols="1,4"]
|===
| Name| Description
| *timeout* [in]
| Maximum time to wait
|===


[.small]#Created with https://www.mrdocs.com[MrDocs]#
