TBlockSocket.GroupCanRead
TBlockSocket     

function GroupCanRead(Const SocketList: TList; Timeout: Integer; Const CanReadList: TList): Boolean;

Unit
blcksock

Description
This function is for check for incoming data on set of sockets.

Whitch sockets is checked is decribed by SocketList Tlist with TBlockSocket objects. TList may have maximal number of objects defined by FD_SETSIZE constant.

Return TRUE, if you can from some 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.

If is returned TRUE, CanReadList TList is filled by all TBlockSocket obejcts withch waiting for read.


See also:
CanRead