BlueLibs documentation

Connection.WaitForData Method 

wait for data to arrive

[Visual Basic]
Function WaitForData( _
   ByVal ms As Integer, _
   ByVal forRead As Boolean _
) As Boolean
[C#]
bool WaitForData(
   int ms,
   bool forRead
);

Parameters

ms
milliseconds to wait
forRead
wait for data to arrives (true) or wait for send

Return Value

if operation was successful. returns false if timeout elapsed

See Also

Connection Interface | BlueLibs.Comm Namespace