TBlockSocket.RecvBufferEx
TBlockSocket
function RecvBufferEx(Buffer: Pointer; Length, Timeout: Integer): Integer; virtual;
Unit
blcksock
Description
Note: This is high-level receive function. It using internal LineBuffer and you can combine this function freely with other high-level functions.
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...).
This method is preffered for reading from stream sockets (like TCP).
See also:
LineBuffer, RecvBuffer, RecvByte, RecvPacket, RecvString, RecvTerminated