TBlockSocket.RecvBufferEx
TBlockSocket
function RecvBufferEx(Buffer: Pointer; Length, Timeout: Integer): Integer; virtual;
Unit
blcksock
Description
Method waits until data is received. If no data is received within TIMEOUT (in milliseconds)period, LastError is set to WSAETIMEDOUT. Methods serves for reading any size of data (i.e. one megabyte...), and may be freely combine with RecvString method.
This method is preffered for reading from stream sockets (like TCP).
See also:
RecvBuffer, RecvPacket, RecvString