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.

This function is need only on special cases, when you need use recvBuffer function directly!


See also:
CanReadEx, GroupCanRead, RecvBuffer, RecvPacket, TTCPBlockSocket.Accept