TBlockSocket.CanRead
TBlockSocket
function CanRead(Timeout: Integer): Boolean;
Unit
blcksock
Description
Return TRUE, if you can from socket read any data or is incoming connection on TCP based socket.
Status is tested for time Timeout (in milliseconds). If value in Timeout is 0, status is only tested and continue. If value in Timeout is -1, run is breaked and waiting for read data maybe forever.